updated aws_foreach_region.sh

pull/2/head
Hari Sekhon 3 years ago
parent 887d558cb3
commit c14902380d

@ -67,9 +67,9 @@ export AWS_DEFAULT_OUTPUT=json
# --all-regions iterates all regions whether or not they are enabled for the current account
if [ -n "${AWS_ALL_REGIONS:-}" ]; then
aws ec2 describe-regions --all-regions
aws ec2 describe-regions --no-paginate --all-regions
else
aws ec2 describe-regions
aws ec2 describe-regions --no-paginate
fi |
jq -r '.Regions[] | .RegionName' |
while read -r region; do

Loading…
Cancel
Save