How to find an AMI in the new AWS console version?
-
I am trying to create an instance in the Launch Configuration menu, but it is impossible to find the needed AMI from the dropdown.
- I expected following menu:
- But currently AWS provides the following possibilities ()selection from the dropdown:
- I can't find the needed AMI from the list (Linux for example)
The bottom line is that I can't even use the
search
dropdown. It does not find existing AMI's:
It's confusing and I do not know how to use AWS now...
-
Ubuntu AMIs
Ubuntu https://cloud-images.ubuntu.com/locator/ec2/ for your convenience and reference.
Rocky Linux
Rocky Linux also maintains a https://rockylinux.org/cloud-images/ .
Amazon or other specific vendor AMIs
The AWS console can be rather limiting, but you can https://aws.amazon.com/blogs/compute/query-for-the-latest-amazon-linux-ami-ids-using-aws-systems-manager-parameter-store/ .
Get a list of Amazon images:
aws ec2 describe-images --owners amazon --filters "Name=name,Values=amzn*" --query 'sort_by(Images, &CreationDate)[].Name'
Use AWS Systems Manager paramater store to find the latest one with the name you want:
aws ssm get-parameters --names /aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2 --region us-east-1
Then make sure you always use the latest when launching an instance:
aws ec2 run-instances --image-id $(aws ssm get-parameters --names /aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2 --query 'Parameters[0].[Value]' --output text) --count 1 --instance-type m4.large