How to list the latest available RHEL images 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)

Resolution

Use the AWS Command Line Interface (CLI) to list available RHEL images. The following example shows --query and --filters options you can use to list RHEL 7 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. For example, you can replace Values-RHEL-7.?*GA* with Values-RHEL-6.?*GA* to list RHEL 6 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.

[cloud-user@localhost ~] $ aws ec2 describe-images --owners 309956199498 --query 'Images[*].[CreationDate,Name,ImageId]' --filters "Name=name,Values=RHEL-7.?*GA*" --region us-east-1 --output table | sort -r

|                                                DescribeImages                                                |
|  2017-12-04T20:35:27.000Z |  RHEL-7.4_HVM_GA-JBEAP-7.1.0-20171204-x86_64-1-Access2-GP2       |  ami-a4791ede |
|  2017-08-15T22:54:27.000Z |  RHEL-7.3_HVM_GA-JBEAP-7.1.0.Beta-20170703-x86_64-1-Access2-GP2  |  ami-94ebd8ef |
|  2017-08-08T15:37:31.000Z |  RHEL-7.4_HVM_GA-20170808-x86_64-2-Hourly2-GP2                   |  ami-c998b6b2 |
|  2017-08-08T15:37:28.000Z |  RHEL-7.4_HVM_GA-20170808-x86_64-2-Access2-GP2                   |  ami-7a96b801 |
|  2017-07-24T15:44:39.000Z |  RHEL-7.4_HVM_GA-20170724-x86_64-1-Hourly2-GP2                   |  ami-cdc999b6 |
|  2017-07-24T15:44:37.000Z |  RHEL-7.4_HVM_GA-20170724-x86_64-1-Access2-GP2                   |  ami-fbc89880 |
|  2016-10-26T22:32:29.000Z |  RHEL-7.3_HVM_GA-20161026-x86_64-1-Hourly2-GP2                   |  ami-b63769a1 |
|  2016-10-26T22:32:26.000Z |  RHEL-7.3_HVM_GA-20161026-x86_64-1-Access2-GP2                   |  ami-a33668b4 |
|  2016-07-14T20:24:48.000Z |  RHEL-7.2_HVM_GA-JBEAP-7.0.0-20160714-x86_64-1-Access2-GP2       |  ami-6445c773 |
|  2015-11-12T21:06:58.000Z |  RHEL-7.2_HVM_GA-20151112-x86_64-1-Hourly2-GP2                   |  ami-2051294a |
|  2015-11-12T21:06:49.000Z |  RHEL-7.2_HVM_GA-20151112-x86_64-1-Access2-GP2                   |  ami-2a532b40 |
|  2015-04-14T16:05:15.000Z |  RHEL-7.1.1_HVM_GA-Atomic-20150414-x86_64-1-Access2-GP2          |  ami-eea69e86 |
|  2015-02-25T20:24:23.000Z |  RHEL-7.1_HVM_GA-20150225-x86_64-1-Hourly2-GP2                   |  ami-12663b7a |
|  2015-02-25T20:24:21.000Z |  RHEL-7.1_HVM_GA-20150225-x86_64-1-Access2-GP2                   |  ami-10663b78 |
|  2015-02-20T15:33:32.000Z |  RHEL-7.1_HVM_GA-Atomic-20150219-x86_64-1-Access2-GP2            |  ami-46a4f52e |
|  2015-02-09T22:54:40.000Z |  RHEL-7.0_HVM_GA-20150209-x86_64-1-Hourly2-GP2                   |  ami-60a1e808 |
|  2015-02-09T22:54:38.000Z |  RHEL-7.0_HVM_GA-20150209-x86_64-1-Access2-GP2                   |  ami-6ea1e806 |
|  2014-10-17T20:29:24.000Z |  RHEL-7.0_HVM_GA-20141017-x86_64-1-Hourly2-GP2                   |  ami-a8d369c0 |
|  2014-10-17T20:29:05.000Z |  RHEL-7.0_HVM_GA-20141017-x86_64-1-Access2-GP2                   |  ami-d2d369ba |
|  2014-05-28T19:17:11.000Z |  RHEL-7.0_GA_HVM-x86_64-3-Hourly2                                |  ami-785bae10 |
|  2014-05-28T19:16:58.000Z |  RHEL-7.0_GA_HVM-x86_64-3-Access2                                |  ami-645bae0c |
+---------------------------+------------------------------------------------------------------+---------------+
+---------------------------+------------------------------------------------------------------+---------------+
----------------------------------------------------------------------------------------------------------------

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.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.