Created
November 12, 2012 23:23
-
-
Save mriddle/4062758 to your computer and use it in GitHub Desktop.
How to set name tag on multiple EC2 instances for given AMI
This file contains hidden or 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 instance in `ec2-describe-instances | grep ami-80dd59e9 | grep '^INSTANCE' | cut -f2 -s`; do | |
ec2-create-tags $instance --tag "Name=Foobar" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment