EC2 Image Builder CDK component/recipe versioning

0

I have an EC2 Image Builder pipeline created via CDK Typescript. Every time I update a component or the recipe by updating base image id for example I have to update the component version, which makes sense. But when I try to run cdk deploy it replaces the old component/recipe with the new one. I don't find a way to create versions of components/recipe the way I can do via UI. How is versioning currently done with AWS CDK for EC2 Image Builder? Is this even possible?

1개 답변
0

Hello,

I understand that you would like to know how versioning can be done with AWS CDK for EC2 Image Builder.

In order to achieve this make sure to specify the version in the 'sematicVersion' field when creating a new version of component/recipe. Also, please note that 'semanticVersion' is a required field. Hence please check on how the recipe/component is being updated, is it by specifying same version or no version.

The following are few reference links relevant to your use case: [+] https://docs.aws.amazon.com/imagebuilder/latest/userguide/create-image-recipes.html [+] https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/imagebuilder/client/create_component.html#

I hope the above information helps!

AWS
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전

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

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

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