Skip to content

Instantly share code, notes, and snippets.

@dspinellis
Created November 30, 2013 08:03
Show Gist options
  • Save dspinellis/7716549 to your computer and use it in GitHub Desktop.
Save dspinellis/7716549 to your computer and use it in GitHub Desktop.
Rename one or more AWS EC2 snapshots
ec2-describe-snapshots --filter tag:Name=OLDNAME |
awk '$1 == "SNAPSHOT" {print $2}' |
while read id ; do
ec2-create-tags $id --tag Name=NEWNAME
done
@keshavramaswamy
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment