Skip to content

Instantly share code, notes, and snippets.

@n0ts
Last active December 6, 2016 06:17
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 n0ts/4d48e2d215a4edec67801bf6f2fdb684 to your computer and use it in GitHub Desktop.
Save n0ts/4d48e2d215a4edec67801bf6f2fdb684 to your computer and use it in GitHub Desktop.
Set AWS EC2 ID longer for all region
for r in $(aws ec2 --region us-east-1 describe-regions | jq -r ".Regions[] | .RegionName"); do for i in "instance" "reservation" "volume" "snapshot"; do aws --debug --region $r ec2 modify-id-format --resource $i --use-long-ids; done; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment