1
0
Files
terraform.examples/modules/util/resource-list/list-ngw.sh
T
2026-02-13 15:44:24 +08:00

3 lines
202 B
Bash
Executable File

#!/bin/bash
RESULTS=$(aws ec2 describe-nat-gateways --query 'NatGateways[].NatGatewayId' --output text --no-cli-pager | sed 's/\t/\n/g' | sort | xargs)
jq -n --arg result "$RESULTS" '{"result":$result}'