terraform.aws-baseline-infra/modules/util/resource-list/list-ngw.sh
2022-12-08 10:42:05 +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}'