Created
January 10, 2018 11:34
-
-
Save te-online/495edaf5e4197372fefad4ece52b0028 to your computer and use it in GitHub Desktop.
Find the AMI id of an old AMI with aws-cli
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
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