Red Hat Enterprise Linux Images (AMI) Available on Amazon Web Services (AWS)

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux (RHEL) on AWS

Issue

  • How to list the latest available RHEL Amazon Machine Images (AMIs)
  • What are the AMIs for the available Red Hat Enterprise Linux Images on Amazon Web Services (AWS)

Resolution

Red Hat Enterprise Linux (RHEL) images are periodically made available within Amazon Web Services (AWS) as part of the regular update release process. It is recommended to still implement regular updates within virtual machines as repository content can be expected to be newer than the underlying AMI contents.

For customized image types, it is recommended to utilize Red Hat Image Builder service:

The list of On-Demand images available on Amazon EC2 (i.e. pay-as-you-go [PAYG]) is dynamic and change frequently. Therefore, it is recommended to utilize the process outlined below at any given time to get the most up-to-date list of what it's available.

This process uses the AWS Command Line Interface (CLI). The following example shows --query and --filters options you can use to list RHEL 9 images available on AWS in the us-east-1 region. Modify the values in the example command to list the images you want to see.

$ aws ec2 describe-images --owners 309956199498 --query 'sort_by(Images, &Name)[*].[CreationDate,Name,ImageId]' --filters "Name=name,Values=RHEL-9*" --region us-east-1 --output table

For example, you can replace Values=RHEL-9* with Values=RHEL-8* to list RHEL 8 images.

Note: Do not modify the command option --owners 309956199498. This is the account ID used to show Red Hat images. If you need to list images for AWS GovCloud, use --region us-gov-west-1 and --owners 219670896067. See What Is AWS GovCloud (US)? for additional information.

Refer to the following resources for additional information:

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments