Created
November 30, 2013 08:03
-
-
Save dspinellis/7716549 to your computer and use it in GitHub Desktop.
Rename one or more AWS EC2 snapshots
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
ec2-describe-snapshots --filter tag:Name=OLDNAME | | |
awk '$1 == "SNAPSHOT" {print $2}' | | |
while read id ; do | |
ec2-create-tags $id --tag Name=NEWNAME | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!