Skip to content

Instantly share code, notes, and snippets.

@aaronlifton
Created September 27, 2017 00:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronlifton/2449b19da70d7ae6b06af9ace7512c1d to your computer and use it in GitHub Desktop.
Save aaronlifton/2449b19da70d7ae6b06af9ace7512c1d to your computer and use it in GitHub Desktop.
describe ec2 instances in all regions
for region in `aws ec2 describe-regions --output text | cut -f3`
do
echo -e "\nListing Instances in region:'$region'..."
aws ec2 describe-instances --region $region
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment