Skip to content

Instantly share code, notes, and snippets.

@simpsora
Created October 4, 2016 22:16
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 simpsora/8f5f967fcea9335238754d8aed97d9e1 to your computer and use it in GitHub Desktop.
Save simpsora/8f5f967fcea9335238754d8aed97d9e1 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
for region in $(aws ec2 describe-regions --query 'Regions[].RegionName' --output text); do
echo $region
for resource_type in instance reservation snapshot volume; do
aws ec2 modify-id-format --region $region --resource $resource_type --use-long-ids && echo -e "\t$resource_type \e[32m✔\e[0m"
done
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment