Skip to content

Instantly share code, notes, and snippets.

@te-online
Created January 10, 2018 11:34
Show Gist options
  • Save te-online/495edaf5e4197372fefad4ece52b0028 to your computer and use it in GitHub Desktop.
Save te-online/495edaf5e4197372fefad4ece52b0028 to your computer and use it in GitHub Desktop.
Find the AMI id of an old AMI with aws-cli
AMI_NAME="2017.09.c"
aws ec2 describe-images --filters "Name=name,Values=*$AMI_NAME*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment