Difference between revisions of "Aws-ec2-describe-instances-all-regions"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
       [[aws ec2 describe-instances]] --region $region
 
       [[aws ec2 describe-instances]] --region $region
 
  done
 
  done
 +
 +
aws ec2 describe-regions --query "Regions[].{Name:RegionName}" --output text | [[parallel]]
  
 
== Related ==  
 
== Related ==  

Revision as of 18:38, 28 January 2022

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

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: