Amazon provides a list on their website. https://aws.amazon.com/amis

Actually I was sure that it was also possible to grab and filter the list via the API but unfortunately I can't find any documentation about this (imaginary?) feature

Answer from Michel Feldheim on Stack Overflow
🌐
Amazon Web Services
aws.amazon.com › amazon linux ami
AWS | Amazon Linux AMI
2 weeks ago - The Amazon Linux AMI is a supported and maintained Linux image provided by Amazon Web Services for use on Amazon Elastic Compute Cloud (Amazon EC2). It is designed to provide a stable, secure, and high performance execution environment for applications running on Amazon EC2.
Discussions

Best way to find AMI ID of Amazon Linux 2 for each region for a CloudFormation map?
https://aws.amazon.com/blogs/compute/query-for-the-latest-amazon-linux-ami-ids-using-aws-systems-manager-parameter-store/ More on reddit.com
🌐 r/aws
5
1
September 18, 2018
amazon ec2 - Is there a list of AMIs for every popular linux distribution and version - Stack Overflow
I need to test a piece of software against every linux distribution/version. I'm going to use amazon AWS Is there a list of AMIs somewhere that I can just copy paste into my script to automate this More on stackoverflow.com
🌐 stackoverflow.com
Can I query an AMI to find out if it is Amazon Linux 1 or 2?
You can check the name and description of the AMI from the describe-images command. This would depend on what the creator of the AMI used, but it should give accurate results for AMIs provided by say AWS for AL1 and AL2. The actual flavor won't be a field in the AMI description as it is software dependant, and AMIs are block level copies of your data which means they don't know what software you're running. This ties in with AWS privacy model as well. More on reddit.com
🌐 r/aws
2
3
November 2, 2020
Using Boto3 to fetch the AMI ID of Amazon's AL2 AMIs?
Use AWS SSM parameter store for Amazon Linux 2. You can see how to get it here - https://www.saisci.com/aws/list-of-public-ssm-parameters-for-amazon-linux-amis-ami-amazon-linux-latest/ Get the value for every region of your target version. More on reddit.com
🌐 r/aws
5
4
August 16, 2023
🌐
AWS
aws.amazon.com › blogs › compute › query-for-the-latest-amazon-linux-ami-ids-using-aws-systems-manager-parameter-store
Query for the latest Amazon Linux AMI IDs using AWS Systems Manager Parameter Store | Amazon Web Services
September 14, 2018 - This post is courtesy of Arend Castelein, Software Development Engineer – AWS Want a simpler way to query for the latest Amazon Linux AMI? AWS Systems Manager Parameter Store already allows for querying the latest Windows AMI. Now, support has been expanded to include the latest Amazon Linux AMI.
Find elsewhere
🌐
AWS
docs.aws.amazon.com › amazon linux › user guide › al2 on amazon ec2
AL2 on Amazon EC2 - Amazon Linux 2
Launch Amazon EC2 instance with ... an Amazon EC2 instanceAL2 AMI boot modePackage repository · AL2 is no longer the current version of Amazon Linux. AL2023 is the successor to AL2. For more information, see Comparing AL2 and AL2023 and the list of Package changes in AL2023 ...
🌐
Reddit
reddit.com › r/aws › can i query an ami to find out if it is amazon linux 1 or 2?
r/aws on Reddit: Can I query an AMI to find out if it is Amazon Linux 1 or 2?
November 2, 2020 -

Given an AMI ID for an existing AMI, I can query the API or command line to find out which OS it is. For example,

aws ec2 describe-images --image-ids $AMI_ID

[...]

"PlatformDetails": "Linux/UNIX"

But for Linux AMIs, is there a way to find out which flavor of Linux it is, without actually launching an instance?

More narrowly, is there a way to find out whether this AMI was built on top of one of the official AWS Amazon Linux 1 or Linux 2 AMIs, and if so, was it AL1 or AL2?

🌐
End of Life Date
endoflife.date › amazon-linux
Amazon Linux | endoflife.date
2 weeks ago - AWS announced Amazon Linux 2023 2 as a successor to Amazon Linux 2, which uses Fedora as the upstream. It reached GA (General Availability) in March 2023. Every major version release is supported by Standard Support for 2 years, followed by a maintenance phase of 3 years.
🌐
Amazon Web Services
aws.amazon.com › products › compute › amazon linux 2
Amazon Linux 2
2 weeks ago - Amazon Linux 2 is a Linux operating system from AWS. It provides a security-focused, stable, and high-performance execution environment to develop and run cloud applications. Amazon Linux 2 is provided at no additional charge.
🌐
AWS
docs.aws.amazon.com › amazon ecs › developer guide › amazon ecs clusters › amazon ecs capacity providers for ec2 workloads › amazon ec2 container instances for amazon ecs › amazon ecs-optimized linux amis
Amazon ECS-optimized Linux AMIs - Amazon Elastic Container Service
3 weeks ago - For more information, see Using cloud-init on Amazon Linux 2 in the Amazon Linux User Guide. ... Certain packages are critical for correct, performant behavior of GPU functionality in Amazon ECS-optimized AL2023 GPU AMIs. These include: ... This is not an exhaustive list.
🌐
GitHub
github.com › hashicorp › terraform-aws-vault › blob › master › _docs › amazon-linux-2-ami-list.md
terraform-aws-vault/_docs/amazon-linux-2-ami-list.md at master · hashicorp/terraform-aws-vault
A Terraform Module for how to run Vault on AWS using Terraform and Packer - terraform-aws-vault/_docs/amazon-linux-2-ami-list.md at master · hashicorp/terraform-aws-vault
Author   hashicorp
🌐
AWS Marketplace
aws.amazon.com › marketplace › pp › prodview-zc4x2k7vt6rpu
AWS Marketplace: Amazon Linux 2 AMI (HVM), SSD Volume Type (64-bit x86) Operating System
Amazon EC2 (Elastic Compute Cloud) ... storage, and networking resources. You can launch as many instances from as many different AMIs as you need. https://aws.amazon.com/amazon-linux-2/release-notes/...
🌐
Amazon Web Services
docs.aws.amazon.com › amazon ec2 › user guide › amazon machine images in amazon ec2 › find an ami that meets the requirements for your ec2 instance › reference the latest amis using systems manager public parameters
Reference the latest AMIs using Systems Manager public parameters - Amazon Elastic Compute Cloud
AWS Systems Manager provides public parameters for public AMIs maintained by AWS. You can use the public parameters when launching instances to ensure that you're using the latest AMIs. For example, the public parameter /aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-arm64
🌐
Amazon Web Services
aws.amazon.com › compute › amazon linux 2 › faqs
Amazon Linux 2 FAQs
2 weeks ago - Amazon Linux 2 is an Amazon Linux operating system that provides modern application environment with the latest enhancements from the Linux community and offers long-term support. In addition to Amazon Machine Images (AMI) and container image formats, Amazon Linux 2 is available as a virtual ...
🌐
AWS
docs.aws.amazon.com › amazon linux › user guide › using al2023 on aws › al2023 on amazon ec2
AL2023 on Amazon EC2 - Amazon Linux 2023
1 month ago - Start using AL2023 by setting up a new instance in the AWS CLI using the CloudFormation AMI ID parameter.
🌐
Amazon Web Services
docs.aws.amazon.com › amazon ec2 › user guide › amazon machine images in amazon ec2
Amazon Machine Images in Amazon EC2 - Amazon Elastic Compute Cloud
Understand what is included in an AMI, how to work with them, and how they are used when you launch an Amazon EC2 instance.
🌐
AWS
docs.aws.amazon.com › amazon linux › user guide › al2 kernel › al2 supported kernels
AL2 supported kernels - Amazon Linux 2
AL2023 AMIs are available with kernel version 6.1. For more information, see AL2023 Kernel changes from AL2 in the Amazon Linux 2023 User Guide.