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
已提問 7 個月前檢視次數 450 次
1 個回答
1
已接受的答案

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
專家
已回答 7 個月前
profile pictureAWS
專家
已審閱 7 個月前
  • 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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南