Image Builder via CloudFormation - get latest AMI ID for Windows

0

I have an image pipeline for Windows 2019 CIS Image. I have deployed a Lambda that looks up for latest CIS image and puts it in a SSM parameter.

In the image recipe (AWS::ImageBuilder::ImageRecipe) I have used the property: ParentImage: '{{resolve:ssm:/EC2/WIN2019CIS_AMI_ID}}'

This solution works however when I look at the Image recipe in the console, it looks like the ami-id gets hard coded in the recipe. So then next time when the image pipeline runs it will not get the new AMI from the SSM parameters.

I need to find a solution so when the next time the image builder runs, next month, it shoul fetch the latest ami from the SSM parameter.

The image I am after is - Windows 2019 CIS image. Looking for suggestions, thanks.

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠