How do I query in SM Parameter Store AMI Alias for a specific version of Amazon ECS-Optimized Amazon Linux 2 AMI
I am trying to query the AMI by lookup up the AMI Alias in SM Parameter Store for a specific version of Amazon ECS-Optimized Amazon Linux 2 AMI. The AMI Alias listed on Marketplace (https://aws.amazon.com/marketplace/server/configuration?productId=9c5eb799-bb6a-4a52-8fda-8e90b3f751f1) is Ami Alias: /aws/service/marketplace/prod-phaazl5qm6pka/2.0.20220121
When I query Name: equals: /aws/service/marketplace/prod-phaazl5qm6pka/2.0.20220121
I get "You do not have any parameters in this region."
I am able to query the "latest" version of the AMI Alias with a query Name: equals: /aws/service/marketplace/prod-phaazl5qm6pka/latest
and get back exactly on result that has a string value with the expected AMI (currently ami-0e4efed85dffc2b28
for us-east-2
).
I want to create some automation that uses the AMI Alias for specific version, and not "latest" and be able to lookup the AMI by region. What am I doing wrong in my query? Or am I maybe missing some permissions or something somewhere?
According to the docs, the /latest is the only public AMI parameters. You can always use the CLI:
aws ec2 describe-images --filters 'Name=name,Values=amzn2-ami-ecs-hvm-2.0.20220121-x86_64-ebs' Name=owner-alias,Values=amazon --query Images[*].ImageId --output text --region us-east-2
Relevant questions
Amazon Linux 2 ECS-optimized GPU AMI on AWS Batch - update to NVIDIA R470 drivers
asked 5 months agoWhy is the GPU not working out of the box for Deep learning AMI EC2 instance?
asked a month agoHow do I query in SM Parameter Store AMI Alias for a specific version of Amazon ECS-Optimized Amazon Linux 2 AMI
asked 3 months agoProgramatically retrieve recommended AMI id for GPU EKS nodes
asked a year agoList of AMI for a instance type across all regions
Accepted Answerasked 2 years agonodejs10.x Lambda Env != Amazon Linux 2 AMI Env
Accepted Answerasked 3 years agoWill setting docker --storage-opt be deprecated?
asked 2 years agoEBS Unoptimized Product
asked 3 days agoAmazon Linux 2 Kernel 5.10
asked 5 months agoDoubt about billing and transfers between regions of a Public AMI with public Snapshot
asked 2 months ago
Can you point me to where you see this in the documentation? I appreciate the answer and will look into this some more. I'd like to understand how to navigate the documentation around this more and where to find what you are referencing.