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.

profile picture
preguntada hace 7 meses451 visualizaciones
1 Respuesta
1
Respuesta aceptada

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
EXPERTO
respondido hace 7 meses
profile pictureAWS
EXPERTO
revisado hace 7 meses
  • 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.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas