Skip to content

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.

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 }],
});
const pipeline = yield* ImageBuilder.ImagePipeline("Pipeline", {
imageRecipeArn: recipe.imageRecipeArn,
infrastructureConfigurationArn: infra.infrastructureConfigurationArn,
});