Seen multiple places around the web; I’m not sure where attribution should lie, but this is not original to me:
# ~/.ssh/config
#
Host *.amazonaws.com
CheckHostIP no
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
Seen multiple places around the web; I’m not sure where attribution should lie, but this is not original to me:
# ~/.ssh/config
#
Host *.amazonaws.com
CheckHostIP no
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
Adjust egrep as necessary:
ec2-describe-snapshots | egrep ‘2009-0[89]‘ | awk ‘{print $2}’ | xargs -L 1 ec2-delete-snapshot