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
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
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.
Amazon Linux 2 ECS-optimized GPU AMI on AWS Batch - update to NVIDIA R470 driversasked 5 months ago
Why is the GPU not working out of the box for Deep learning AMI EC2 instance?asked a month ago
How do I query in SM Parameter Store AMI Alias for a specific version of Amazon ECS-Optimized Amazon Linux 2 AMIasked 3 months ago
Programatically retrieve recommended AMI id for GPU EKS nodesasked a year ago
List of AMI for a instance type across all regionsAccepted Answerasked 2 years ago
nodejs10.x Lambda Env != Amazon Linux 2 AMI EnvAccepted Answerasked 3 years ago
Will setting docker --storage-opt be deprecated?asked 2 years ago
EBS Unoptimized Productasked 3 days ago
Amazon Linux 2 Kernel 5.10asked 5 months ago
Doubt about billing and transfers between regions of a Public AMI with public Snapshotasked 2 months ago