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 réponse
1
Réponse acceptée

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
répondu il y a 7 mois
profile pictureAWS
EXPERT
vérifié il y a 7 mois
  • 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.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions