AWS Image Builder Image Recipe
This page shows how to write Terraform and CloudFormation for Image Builder Image Recipe and write them securely.
aws_imagebuilder_image_recipe (Terraform)
The Image Recipe in Image Builder can be configured in Terraform with the resource name aws_imagebuilder_image_recipe
. The following sections describe 1 example of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_imagebuilder_image_recipe" "py_recipe" {
// block_device_mapping {
// device_name = "/dev/sda/"
//
// ebs {
// delete_on_termination = true
Parameters
-
arn
optional computed - string -
date_created
optional computed - string -
description
optional - string -
id
optional computed - string -
name
required - string -
owner
optional computed - string -
parent_image
required - string -
platform
optional computed - string -
tags
optional - map from string to string -
version
required - string -
working_directory
optional - string -
block_device_mapping
set block-
device_name
optional - string -
no_device
optional - bool -
virtual_name
optional - string -
ebs
list block-
delete_on_termination
optional - string -
encrypted
optional - string -
iops
optional - number -
kms_key_id
optional - string -
snapshot_id
optional - string -
volume_size
optional - number -
volume_type
optional - string
-
-
-
component
list block-
component_arn
required - string
-
Explanation in Terraform Registry
Manages an Image Builder Image Recipe.
AWS::ImageBuilder::ImageRecipe (CloudFormation)
The ImageRecipe in ImageBuilder can be configured in CloudFormation with the resource name AWS::ImageBuilder::ImageRecipe
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
-
Name
required - String -
Description
optional - String -
Version
required - String -
Components
required - List of ComponentConfiguration -
BlockDeviceMappings
optional - List of InstanceBlockDeviceMapping -
ParentImage
required - String -
WorkingDirectory
optional - String -
AdditionalInstanceConfiguration
optional - AdditionalInstanceConfiguration -
Tags
optional - Map
Explanation in CloudFormation Registry
An Image Builder image recipe is a document that defines the source image and the components to be applied to the source image to produce the desired configuration for the output image. You can use an image recipe to duplicate builds. Image Builder image recipes can be shared, branched, and edited using the console wizard, the AWS CLI, or the API. You can use image recipes with your version control software to maintain shareable versioned image recipes.
Frequently asked questions
What is AWS Image Builder Image Recipe?
AWS Image Builder Image Recipe is a resource for Image Builder of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS Image Builder Image Recipe?
For Terraform, the KonovalovAlexey/terraform-modules source code example is useful. See the Terraform Example section for further details.