Fetch the latest RHEL9 AMI via Parameter Store

0

Hi,

Is there a way to get the latest RHEL9 AMI via Parameter Store like we do for Linux:

Parameters:
  LatestAmiId:
    Type: 'AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>'
    Default: '/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2'

I can't find anywhere that it's possible.

BR, M.

1 Answer
1
Accepted Answer

Hello.

As far as I can see in the document below, there is no global parameter to get the RHEL9 AMI.
https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-finding-public-parameters.html

profile picture
EXPERT
answered 7 months ago
profile pictureAWS
EXPERT
reviewed 7 months ago
  • When I executed the command below, I found something called "/aws/service/list/redhat", so maybe I can find it if I look for it.

    aws ssm describe-parameters --parameter-filters "Key=Name, Option=BeginsWith, Values=/aws/service/list" --query Parameters[].Name |sort
    
  • I looked for it from the management console, but couldn't find it. r
    I also tried executing the command below, but the parameter was not found, so it seems that it cannot be used with SSM's global parameters.

    aws ssm get-parameters-by-path --recursive --path /aws/service/redhat/
    {
        "Parameters": []
    }
    
  • Thank you for confirmation.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions