Last active
December 6, 2016 06:17
-
-
Save n0ts/4d48e2d215a4edec67801bf6f2fdb684 to your computer and use it in GitHub Desktop.
Set AWS EC2 ID longer for all region
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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