According to Red Hat Enterprise Linux Images (AMI) Available on Amazon Web Services (AWS), all the AMIs provided by Redhat will under account 309956199498
, so we could search the AMIs we need like this:
RHEL7
$ aws ec2 describe-images --owners 309956199498 \
--filters "Name=name,Values=RHEL-7*" \
--query 'Images[*].{ID:ImageId,Name:Name,Created:CreationDate}' \
--output text \
--region eu-central-1 | sort -k1 --reverse
2024-10-11T13:32:27.000Z ami-0ad2778533baa4748 RHEL-7.9_HVM-20240930-x86_64-0-Hourly2-GP3
RHEL9.4
$ aws ec2 describe-images --owners 309956199498 \
--filters "Name=name,Values=RHEL-9.4*" \
--query 'Images[*].{ID:ImageId,Name:Name,Created:CreationDate}' \
--output text \
--region eu-central-1 | sort -k1 --reverse
2024-11-14T20:57:03.000Z ami-06ce7461a466fec39 RHEL-9.4.0_HVM-20241114-x86_64-0-Hourly2-GP3
2024-11-14T19:22:12.000Z ami-089b71495d6cacd26 RHEL-9.4.0_HVM-20241114-arm64-0-Hourly2-GP3
2024-08-30T18:31:05.000Z ami-0a8a854e8d54e15fd RHEL-9.4_HVM_GA-20240827-arm64-0-Hourly2-GP3
2024-08-29T18:49:27.000Z ami-0ad9d6257ef87c680 RHEL-9.4_HVM_GA-20240827-x86_64-0-Hourly2-GP3
2024-07-23T18:40:14.000Z ami-04d2cbd685964f8a8 RHEL-9.4.0_HVM-20240718-x86_64-2-Hourly2-GP3
2024-07-23T18:40:04.000Z ami-0089a9cfdbb13b585 RHEL-9.4.0_HVM-20240718-arm64-2-Hourly2-GP3
2024-06-07T00:19:58.000Z ami-007c3072df8eb6584 RHEL-9.4.0_HVM-20240605-x86_64-82-Hourly2-GP3
2024-06-07T00:16:42.000Z ami-02212921a6e889ed6 RHEL-9.4.0_HVM-20240605-arm64-82-Hourly2-GP3
2024-04-24T14:19:42.000Z ami-034b5b8ea21d61232 RHEL-9.4.0_HVM-20240423-x86_64-62-Hourly2-GP3
2024-04-24T14:16:32.000Z ami-095c0cb563b2bbdbb RHEL-9.4.0_HVM-20240423-arm64-62-Hourly2-GP3
2024-04-11T23:49:40.000Z ami-09740fc653b58c68f RHEL-9.4.0_HVM_BETA-20240411-x86_64-30-Hourly2-GP3
2024-04-11T23:47:54.000Z ami-02944a533ed208678 RHEL-9.4.0_HVM_BETA-20240411-arm64-30-Hourly2-GP3