aws-ec2-describe-instances-all-regions

From wikieduonline
Revision as of 18:23, 28 January 2022 by Welcome (talk | contribs)
Jump to navigation Jump to search

for region in `aws ec2 describe-regions --region us-east-1 --output text | cut -f4`; do
     echo -e "\nListing Instances in region:'$region'..."
     aws ec2 describe-instances --region $region
done
for region in `aws ec2 describe-regions --all-regions --query "Regions[].{Name:RegionName}" --output text`; do
     echo -e "\nListing Instances in region:'$region'..."
     aws ec2 describe-instances --region $region
done

Related

  • aws ec2 describe-regions --all-regions --query "Regions[].{Name:RegionName}" --output text
  • aws ec2 describe-regions --query Regions[*].[RegionName] --output text
  • suaws

See also

Advertising: