ImageRecipe
Source:
src/AWS/ImageBuilder/ImageRecipe.ts
An EC2 Image Builder image recipe — the blueprint that combines a parent image with an ordered list of components to produce a new AMI.
Recipes are immutable versions: every property except tags replaces the
recipe. Bump semanticVersion when changing the definition.
Creating an Image Recipe
Section titled “Creating an Image Recipe”const recipe = yield* ImageBuilder.ImageRecipe("Recipe", { parentImage: "arn:aws:imagebuilder:us-west-2:aws:image/amazon-linux-2023-x86/x.x.x", semanticVersion: "1.0.0", components: [{ componentArn: component.componentBuildVersionArn }],});Using in a Pipeline
Section titled “Using in a Pipeline”const pipeline = yield* ImageBuilder.ImagePipeline("Pipeline", { imageRecipeArn: recipe.imageRecipeArn, infrastructureConfigurationArn: infra.infrastructureConfigurationArn,});