1. Packages
  2. AWS Classic
  3. API Docs
  4. imagebuilder
  5. ImageRecipe

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.23.0 published on Thursday, Feb 22, 2024 by Pulumi

aws.imagebuilder.ImageRecipe

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.23.0 published on Thursday, Feb 22, 2024 by Pulumi

    Manages an Image Builder Image Recipe.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.ImageBuilder.ImageRecipe("example", new()
        {
            BlockDeviceMappings = new[]
            {
                new Aws.ImageBuilder.Inputs.ImageRecipeBlockDeviceMappingArgs
                {
                    DeviceName = "/dev/xvdb",
                    Ebs = new Aws.ImageBuilder.Inputs.ImageRecipeBlockDeviceMappingEbsArgs
                    {
                        DeleteOnTermination = "true",
                        VolumeSize = 100,
                        VolumeType = "gp2",
                    },
                },
            },
            Components = new[]
            {
                new Aws.ImageBuilder.Inputs.ImageRecipeComponentArgs
                {
                    ComponentArn = aws_imagebuilder_component.Example.Arn,
                    Parameters = new[]
                    {
                        new Aws.ImageBuilder.Inputs.ImageRecipeComponentParameterArgs
                        {
                            Name = "Parameter1",
                            Value = "Value1",
                        },
                        new Aws.ImageBuilder.Inputs.ImageRecipeComponentParameterArgs
                        {
                            Name = "Parameter2",
                            Value = "Value2",
                        },
                    },
                },
            },
            ParentImage = $"arn:{data.Aws_partition.Current.Partition}:imagebuilder:{data.Aws_region.Current.Name}:aws:image/amazon-linux-2-x86/x.x.x",
            Version = "1.0.0",
        });
    
    });
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/imagebuilder"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := imagebuilder.NewImageRecipe(ctx, "example", &imagebuilder.ImageRecipeArgs{
    			BlockDeviceMappings: imagebuilder.ImageRecipeBlockDeviceMappingArray{
    				&imagebuilder.ImageRecipeBlockDeviceMappingArgs{
    					DeviceName: pulumi.String("/dev/xvdb"),
    					Ebs: &imagebuilder.ImageRecipeBlockDeviceMappingEbsArgs{
    						DeleteOnTermination: pulumi.String("true"),
    						VolumeSize:          pulumi.Int(100),
    						VolumeType:          pulumi.String("gp2"),
    					},
    				},
    			},
    			Components: imagebuilder.ImageRecipeComponentArray{
    				&imagebuilder.ImageRecipeComponentArgs{
    					ComponentArn: pulumi.Any(aws_imagebuilder_component.Example.Arn),
    					Parameters: imagebuilder.ImageRecipeComponentParameterArray{
    						&imagebuilder.ImageRecipeComponentParameterArgs{
    							Name:  pulumi.String("Parameter1"),
    							Value: pulumi.String("Value1"),
    						},
    						&imagebuilder.ImageRecipeComponentParameterArgs{
    							Name:  pulumi.String("Parameter2"),
    							Value: pulumi.String("Value2"),
    						},
    					},
    				},
    			},
    			ParentImage: pulumi.String(fmt.Sprintf("arn:%v:imagebuilder:%v:aws:image/amazon-linux-2-x86/x.x.x", data.Aws_partition.Current.Partition, data.Aws_region.Current.Name)),
    			Version:     pulumi.String("1.0.0"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.imagebuilder.ImageRecipe;
    import com.pulumi.aws.imagebuilder.ImageRecipeArgs;
    import com.pulumi.aws.imagebuilder.inputs.ImageRecipeBlockDeviceMappingArgs;
    import com.pulumi.aws.imagebuilder.inputs.ImageRecipeBlockDeviceMappingEbsArgs;
    import com.pulumi.aws.imagebuilder.inputs.ImageRecipeComponentArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new ImageRecipe("example", ImageRecipeArgs.builder()        
                .blockDeviceMappings(ImageRecipeBlockDeviceMappingArgs.builder()
                    .deviceName("/dev/xvdb")
                    .ebs(ImageRecipeBlockDeviceMappingEbsArgs.builder()
                        .deleteOnTermination(true)
                        .volumeSize(100)
                        .volumeType("gp2")
                        .build())
                    .build())
                .components(ImageRecipeComponentArgs.builder()
                    .componentArn(aws_imagebuilder_component.example().arn())
                    .parameters(                
                        ImageRecipeComponentParameterArgs.builder()
                            .name("Parameter1")
                            .value("Value1")
                            .build(),
                        ImageRecipeComponentParameterArgs.builder()
                            .name("Parameter2")
                            .value("Value2")
                            .build())
                    .build())
                .parentImage(String.format("arn:%s:imagebuilder:%s:aws:image/amazon-linux-2-x86/x.x.x", data.aws_partition().current().partition(),data.aws_region().current().name()))
                .version("1.0.0")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.imagebuilder.ImageRecipe("example",
        block_device_mappings=[aws.imagebuilder.ImageRecipeBlockDeviceMappingArgs(
            device_name="/dev/xvdb",
            ebs=aws.imagebuilder.ImageRecipeBlockDeviceMappingEbsArgs(
                delete_on_termination="true",
                volume_size=100,
                volume_type="gp2",
            ),
        )],
        components=[aws.imagebuilder.ImageRecipeComponentArgs(
            component_arn=aws_imagebuilder_component["example"]["arn"],
            parameters=[
                aws.imagebuilder.ImageRecipeComponentParameterArgs(
                    name="Parameter1",
                    value="Value1",
                ),
                aws.imagebuilder.ImageRecipeComponentParameterArgs(
                    name="Parameter2",
                    value="Value2",
                ),
            ],
        )],
        parent_image=f"arn:{data['aws_partition']['current']['partition']}:imagebuilder:{data['aws_region']['current']['name']}:aws:image/amazon-linux-2-x86/x.x.x",
        version="1.0.0")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.imagebuilder.ImageRecipe("example", {
        blockDeviceMappings: [{
            deviceName: "/dev/xvdb",
            ebs: {
                deleteOnTermination: "true",
                volumeSize: 100,
                volumeType: "gp2",
            },
        }],
        components: [{
            componentArn: aws_imagebuilder_component.example.arn,
            parameters: [
                {
                    name: "Parameter1",
                    value: "Value1",
                },
                {
                    name: "Parameter2",
                    value: "Value2",
                },
            ],
        }],
        parentImage: `arn:${data.aws_partition.current.partition}:imagebuilder:${data.aws_region.current.name}:aws:image/amazon-linux-2-x86/x.x.x`,
        version: "1.0.0",
    });
    
    resources:
      example:
        type: aws:imagebuilder:ImageRecipe
        properties:
          blockDeviceMappings:
            - deviceName: /dev/xvdb
              ebs:
                deleteOnTermination: true
                volumeSize: 100
                volumeType: gp2
          components:
            - componentArn: ${aws_imagebuilder_component.example.arn}
              parameters:
                - name: Parameter1
                  value: Value1
                - name: Parameter2
                  value: Value2
          parentImage: arn:${data.aws_partition.current.partition}:imagebuilder:${data.aws_region.current.name}:aws:image/amazon-linux-2-x86/x.x.x
          version: 1.0.0
    

    Create ImageRecipe Resource

    new ImageRecipe(name: string, args: ImageRecipeArgs, opts?: CustomResourceOptions);
    @overload
    def ImageRecipe(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    block_device_mappings: Optional[Sequence[ImageRecipeBlockDeviceMappingArgs]] = None,
                    components: Optional[Sequence[ImageRecipeComponentArgs]] = None,
                    description: Optional[str] = None,
                    name: Optional[str] = None,
                    parent_image: Optional[str] = None,
                    systems_manager_agent: Optional[ImageRecipeSystemsManagerAgentArgs] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    user_data_base64: Optional[str] = None,
                    version: Optional[str] = None,
                    working_directory: Optional[str] = None)
    @overload
    def ImageRecipe(resource_name: str,
                    args: ImageRecipeArgs,
                    opts: Optional[ResourceOptions] = None)
    func NewImageRecipe(ctx *Context, name string, args ImageRecipeArgs, opts ...ResourceOption) (*ImageRecipe, error)
    public ImageRecipe(string name, ImageRecipeArgs args, CustomResourceOptions? opts = null)
    public ImageRecipe(String name, ImageRecipeArgs args)
    public ImageRecipe(String name, ImageRecipeArgs args, CustomResourceOptions options)
    
    type: aws:imagebuilder:ImageRecipe
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ImageRecipeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ImageRecipeArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ImageRecipeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ImageRecipeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ImageRecipeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ImageRecipe Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ImageRecipe resource accepts the following input properties:

    Components List<ImageRecipeComponent>
    Ordered configuration block(s) with components for the image recipe. Detailed below.
    ParentImage string
    The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID.
    Version string

    The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0.

    The following attributes are optional:

    BlockDeviceMappings List<ImageRecipeBlockDeviceMapping>
    Configuration block(s) with block device mappings for the image recipe. Detailed below.
    Description string
    Description of the image recipe.
    Name string
    Name of the image recipe.
    SystemsManagerAgent ImageRecipeSystemsManagerAgent
    Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below.
    Tags Dictionary<string, string>
    Key-value map of resource tags for the image recipe. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    UserDataBase64 string
    Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance.
    WorkingDirectory string
    The working directory to be used during build and test workflows.
    Components []ImageRecipeComponentArgs
    Ordered configuration block(s) with components for the image recipe. Detailed below.
    ParentImage string
    The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID.
    Version string

    The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0.

    The following attributes are optional:

    BlockDeviceMappings []ImageRecipeBlockDeviceMappingArgs
    Configuration block(s) with block device mappings for the image recipe. Detailed below.
    Description string
    Description of the image recipe.
    Name string
    Name of the image recipe.
    SystemsManagerAgent ImageRecipeSystemsManagerAgentArgs
    Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below.
    Tags map[string]string
    Key-value map of resource tags for the image recipe. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    UserDataBase64 string
    Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance.
    WorkingDirectory string
    The working directory to be used during build and test workflows.
    components List<ImageRecipeComponent>
    Ordered configuration block(s) with components for the image recipe. Detailed below.
    parentImage String
    The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID.
    version String

    The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0.

    The following attributes are optional:

    blockDeviceMappings List<ImageRecipeBlockDeviceMapping>
    Configuration block(s) with block device mappings for the image recipe. Detailed below.
    description String
    Description of the image recipe.
    name String
    Name of the image recipe.
    systemsManagerAgent ImageRecipeSystemsManagerAgent
    Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below.
    tags Map<String,String>
    Key-value map of resource tags for the image recipe. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    userDataBase64 String
    Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance.
    workingDirectory String
    The working directory to be used during build and test workflows.
    components ImageRecipeComponent[]
    Ordered configuration block(s) with components for the image recipe. Detailed below.
    parentImage string
    The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID.
    version string

    The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0.

    The following attributes are optional:

    blockDeviceMappings ImageRecipeBlockDeviceMapping[]
    Configuration block(s) with block device mappings for the image recipe. Detailed below.
    description string
    Description of the image recipe.
    name string
    Name of the image recipe.
    systemsManagerAgent ImageRecipeSystemsManagerAgent
    Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below.
    tags {[key: string]: string}
    Key-value map of resource tags for the image recipe. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    userDataBase64 string
    Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance.
    workingDirectory string
    The working directory to be used during build and test workflows.
    components Sequence[ImageRecipeComponentArgs]
    Ordered configuration block(s) with components for the image recipe. Detailed below.
    parent_image str
    The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID.
    version str

    The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0.

    The following attributes are optional:

    block_device_mappings Sequence[ImageRecipeBlockDeviceMappingArgs]
    Configuration block(s) with block device mappings for the image recipe. Detailed below.
    description str
    Description of the image recipe.
    name str
    Name of the image recipe.
    systems_manager_agent ImageRecipeSystemsManagerAgentArgs
    Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below.
    tags Mapping[str, str]
    Key-value map of resource tags for the image recipe. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    user_data_base64 str
    Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance.
    working_directory str
    The working directory to be used during build and test workflows.
    components List<Property Map>
    Ordered configuration block(s) with components for the image recipe. Detailed below.
    parentImage String
    The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID.
    version String

    The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0.

    The following attributes are optional:

    blockDeviceMappings List<Property Map>
    Configuration block(s) with block device mappings for the image recipe. Detailed below.
    description String
    Description of the image recipe.
    name String
    Name of the image recipe.
    systemsManagerAgent Property Map
    Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below.
    tags Map<String>
    Key-value map of resource tags for the image recipe. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    userDataBase64 String
    Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance.
    workingDirectory String
    The working directory to be used during build and test workflows.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ImageRecipe resource produces the following output properties:

    Arn string
    (Required) Amazon Resource Name (ARN) of the image recipe.
    DateCreated string
    Date the image recipe was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Owner string
    Owner of the image recipe.
    Platform string
    Platform of the image recipe.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    Arn string
    (Required) Amazon Resource Name (ARN) of the image recipe.
    DateCreated string
    Date the image recipe was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Owner string
    Owner of the image recipe.
    Platform string
    Platform of the image recipe.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn String
    (Required) Amazon Resource Name (ARN) of the image recipe.
    dateCreated String
    Date the image recipe was created.
    id String
    The provider-assigned unique ID for this managed resource.
    owner String
    Owner of the image recipe.
    platform String
    Platform of the image recipe.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn string
    (Required) Amazon Resource Name (ARN) of the image recipe.
    dateCreated string
    Date the image recipe was created.
    id string
    The provider-assigned unique ID for this managed resource.
    owner string
    Owner of the image recipe.
    platform string
    Platform of the image recipe.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn str
    (Required) Amazon Resource Name (ARN) of the image recipe.
    date_created str
    Date the image recipe was created.
    id str
    The provider-assigned unique ID for this managed resource.
    owner str
    Owner of the image recipe.
    platform str
    Platform of the image recipe.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    arn String
    (Required) Amazon Resource Name (ARN) of the image recipe.
    dateCreated String
    Date the image recipe was created.
    id String
    The provider-assigned unique ID for this managed resource.
    owner String
    Owner of the image recipe.
    platform String
    Platform of the image recipe.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    Look up Existing ImageRecipe Resource

    Get an existing ImageRecipe resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ImageRecipeState, opts?: CustomResourceOptions): ImageRecipe
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            block_device_mappings: Optional[Sequence[ImageRecipeBlockDeviceMappingArgs]] = None,
            components: Optional[Sequence[ImageRecipeComponentArgs]] = None,
            date_created: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            owner: Optional[str] = None,
            parent_image: Optional[str] = None,
            platform: Optional[str] = None,
            systems_manager_agent: Optional[ImageRecipeSystemsManagerAgentArgs] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            user_data_base64: Optional[str] = None,
            version: Optional[str] = None,
            working_directory: Optional[str] = None) -> ImageRecipe
    func GetImageRecipe(ctx *Context, name string, id IDInput, state *ImageRecipeState, opts ...ResourceOption) (*ImageRecipe, error)
    public static ImageRecipe Get(string name, Input<string> id, ImageRecipeState? state, CustomResourceOptions? opts = null)
    public static ImageRecipe get(String name, Output<String> id, ImageRecipeState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    (Required) Amazon Resource Name (ARN) of the image recipe.
    BlockDeviceMappings List<ImageRecipeBlockDeviceMapping>
    Configuration block(s) with block device mappings for the image recipe. Detailed below.
    Components List<ImageRecipeComponent>
    Ordered configuration block(s) with components for the image recipe. Detailed below.
    DateCreated string
    Date the image recipe was created.
    Description string
    Description of the image recipe.
    Name string
    Name of the image recipe.
    Owner string
    Owner of the image recipe.
    ParentImage string
    The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID.
    Platform string
    Platform of the image recipe.
    SystemsManagerAgent ImageRecipeSystemsManagerAgent
    Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below.
    Tags Dictionary<string, string>
    Key-value map of resource tags for the image recipe. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    UserDataBase64 string
    Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance.
    Version string

    The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0.

    The following attributes are optional:

    WorkingDirectory string
    The working directory to be used during build and test workflows.
    Arn string
    (Required) Amazon Resource Name (ARN) of the image recipe.
    BlockDeviceMappings []ImageRecipeBlockDeviceMappingArgs
    Configuration block(s) with block device mappings for the image recipe. Detailed below.
    Components []ImageRecipeComponentArgs
    Ordered configuration block(s) with components for the image recipe. Detailed below.
    DateCreated string
    Date the image recipe was created.
    Description string
    Description of the image recipe.
    Name string
    Name of the image recipe.
    Owner string
    Owner of the image recipe.
    ParentImage string
    The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID.
    Platform string
    Platform of the image recipe.
    SystemsManagerAgent ImageRecipeSystemsManagerAgentArgs
    Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below.
    Tags map[string]string
    Key-value map of resource tags for the image recipe. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    UserDataBase64 string
    Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance.
    Version string

    The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0.

    The following attributes are optional:

    WorkingDirectory string
    The working directory to be used during build and test workflows.
    arn String
    (Required) Amazon Resource Name (ARN) of the image recipe.
    blockDeviceMappings List<ImageRecipeBlockDeviceMapping>
    Configuration block(s) with block device mappings for the image recipe. Detailed below.
    components List<ImageRecipeComponent>
    Ordered configuration block(s) with components for the image recipe. Detailed below.
    dateCreated String
    Date the image recipe was created.
    description String
    Description of the image recipe.
    name String
    Name of the image recipe.
    owner String
    Owner of the image recipe.
    parentImage String
    The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID.
    platform String
    Platform of the image recipe.
    systemsManagerAgent ImageRecipeSystemsManagerAgent
    Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below.
    tags Map<String,String>
    Key-value map of resource tags for the image recipe. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    userDataBase64 String
    Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance.
    version String

    The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0.

    The following attributes are optional:

    workingDirectory String
    The working directory to be used during build and test workflows.
    arn string
    (Required) Amazon Resource Name (ARN) of the image recipe.
    blockDeviceMappings ImageRecipeBlockDeviceMapping[]
    Configuration block(s) with block device mappings for the image recipe. Detailed below.
    components ImageRecipeComponent[]
    Ordered configuration block(s) with components for the image recipe. Detailed below.
    dateCreated string
    Date the image recipe was created.
    description string
    Description of the image recipe.
    name string
    Name of the image recipe.
    owner string
    Owner of the image recipe.
    parentImage string
    The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID.
    platform string
    Platform of the image recipe.
    systemsManagerAgent ImageRecipeSystemsManagerAgent
    Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below.
    tags {[key: string]: string}
    Key-value map of resource tags for the image recipe. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    userDataBase64 string
    Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance.
    version string

    The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0.

    The following attributes are optional:

    workingDirectory string
    The working directory to be used during build and test workflows.
    arn str
    (Required) Amazon Resource Name (ARN) of the image recipe.
    block_device_mappings Sequence[ImageRecipeBlockDeviceMappingArgs]
    Configuration block(s) with block device mappings for the image recipe. Detailed below.
    components Sequence[ImageRecipeComponentArgs]
    Ordered configuration block(s) with components for the image recipe. Detailed below.
    date_created str
    Date the image recipe was created.
    description str
    Description of the image recipe.
    name str
    Name of the image recipe.
    owner str
    Owner of the image recipe.
    parent_image str
    The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID.
    platform str
    Platform of the image recipe.
    systems_manager_agent ImageRecipeSystemsManagerAgentArgs
    Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below.
    tags Mapping[str, str]
    Key-value map of resource tags for the image recipe. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    user_data_base64 str
    Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance.
    version str

    The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0.

    The following attributes are optional:

    working_directory str
    The working directory to be used during build and test workflows.
    arn String
    (Required) Amazon Resource Name (ARN) of the image recipe.
    blockDeviceMappings List<Property Map>
    Configuration block(s) with block device mappings for the image recipe. Detailed below.
    components List<Property Map>
    Ordered configuration block(s) with components for the image recipe. Detailed below.
    dateCreated String
    Date the image recipe was created.
    description String
    Description of the image recipe.
    name String
    Name of the image recipe.
    owner String
    Owner of the image recipe.
    parentImage String
    The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID.
    platform String
    Platform of the image recipe.
    systemsManagerAgent Property Map
    Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below.
    tags Map<String>
    Key-value map of resource tags for the image recipe. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated:Please use tags instead.

    userDataBase64 String
    Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance.
    version String

    The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0.

    The following attributes are optional:

    workingDirectory String
    The working directory to be used during build and test workflows.

    Supporting Types

    ImageRecipeBlockDeviceMapping, ImageRecipeBlockDeviceMappingArgs

    DeviceName string
    Name of the device. For example, /dev/sda or /dev/xvdb.
    Ebs ImageRecipeBlockDeviceMappingEbs
    Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below.
    NoDevice bool
    Set to true to remove a mapping from the parent image.
    VirtualName string
    Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0.
    DeviceName string
    Name of the device. For example, /dev/sda or /dev/xvdb.
    Ebs ImageRecipeBlockDeviceMappingEbs
    Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below.
    NoDevice bool
    Set to true to remove a mapping from the parent image.
    VirtualName string
    Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0.
    deviceName String
    Name of the device. For example, /dev/sda or /dev/xvdb.
    ebs ImageRecipeBlockDeviceMappingEbs
    Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below.
    noDevice Boolean
    Set to true to remove a mapping from the parent image.
    virtualName String
    Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0.
    deviceName string
    Name of the device. For example, /dev/sda or /dev/xvdb.
    ebs ImageRecipeBlockDeviceMappingEbs
    Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below.
    noDevice boolean
    Set to true to remove a mapping from the parent image.
    virtualName string
    Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0.
    device_name str
    Name of the device. For example, /dev/sda or /dev/xvdb.
    ebs ImageRecipeBlockDeviceMappingEbs
    Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below.
    no_device bool
    Set to true to remove a mapping from the parent image.
    virtual_name str
    Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0.
    deviceName String
    Name of the device. For example, /dev/sda or /dev/xvdb.
    ebs Property Map
    Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below.
    noDevice Boolean
    Set to true to remove a mapping from the parent image.
    virtualName String
    Virtual device name. For example, ephemeral0. Instance store volumes are numbered starting from 0.

    ImageRecipeBlockDeviceMappingEbs, ImageRecipeBlockDeviceMappingEbsArgs

    DeleteOnTermination string
    Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
    Encrypted string
    Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
    Iops int
    Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume.
    KmsKeyId string
    Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption.
    SnapshotId string
    Identifier of the EC2 Volume Snapshot.
    Throughput int
    For GP3 volumes only. The throughput in MiB/s that the volume supports.
    VolumeSize int
    Size of the volume, in GiB.
    VolumeType string
    Type of the volume. For example, gp2 or io2.
    DeleteOnTermination string
    Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
    Encrypted string
    Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
    Iops int
    Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume.
    KmsKeyId string
    Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption.
    SnapshotId string
    Identifier of the EC2 Volume Snapshot.
    Throughput int
    For GP3 volumes only. The throughput in MiB/s that the volume supports.
    VolumeSize int
    Size of the volume, in GiB.
    VolumeType string
    Type of the volume. For example, gp2 or io2.
    deleteOnTermination String
    Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
    encrypted String
    Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
    iops Integer
    Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume.
    kmsKeyId String
    Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption.
    snapshotId String
    Identifier of the EC2 Volume Snapshot.
    throughput Integer
    For GP3 volumes only. The throughput in MiB/s that the volume supports.
    volumeSize Integer
    Size of the volume, in GiB.
    volumeType String
    Type of the volume. For example, gp2 or io2.
    deleteOnTermination string
    Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
    encrypted string
    Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
    iops number
    Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume.
    kmsKeyId string
    Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption.
    snapshotId string
    Identifier of the EC2 Volume Snapshot.
    throughput number
    For GP3 volumes only. The throughput in MiB/s that the volume supports.
    volumeSize number
    Size of the volume, in GiB.
    volumeType string
    Type of the volume. For example, gp2 or io2.
    delete_on_termination str
    Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
    encrypted str
    Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
    iops int
    Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume.
    kms_key_id str
    Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption.
    snapshot_id str
    Identifier of the EC2 Volume Snapshot.
    throughput int
    For GP3 volumes only. The throughput in MiB/s that the volume supports.
    volume_size int
    Size of the volume, in GiB.
    volume_type str
    Type of the volume. For example, gp2 or io2.
    deleteOnTermination String
    Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
    encrypted String
    Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
    iops Number
    Number of Input/Output (I/O) operations per second to provision for an io1 or io2 volume.
    kmsKeyId String
    Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption.
    snapshotId String
    Identifier of the EC2 Volume Snapshot.
    throughput Number
    For GP3 volumes only. The throughput in MiB/s that the volume supports.
    volumeSize Number
    Size of the volume, in GiB.
    volumeType String
    Type of the volume. For example, gp2 or io2.

    ImageRecipeComponent, ImageRecipeComponentArgs

    ComponentArn string
    Amazon Resource Name (ARN) of the Image Builder Component to associate.
    Parameters List<ImageRecipeComponentParameter>
    Configuration block(s) for parameters to configure the component. Detailed below.
    ComponentArn string
    Amazon Resource Name (ARN) of the Image Builder Component to associate.
    Parameters []ImageRecipeComponentParameter
    Configuration block(s) for parameters to configure the component. Detailed below.
    componentArn String
    Amazon Resource Name (ARN) of the Image Builder Component to associate.
    parameters List<ImageRecipeComponentParameter>
    Configuration block(s) for parameters to configure the component. Detailed below.
    componentArn string
    Amazon Resource Name (ARN) of the Image Builder Component to associate.
    parameters ImageRecipeComponentParameter[]
    Configuration block(s) for parameters to configure the component. Detailed below.
    component_arn str
    Amazon Resource Name (ARN) of the Image Builder Component to associate.
    parameters Sequence[ImageRecipeComponentParameter]
    Configuration block(s) for parameters to configure the component. Detailed below.
    componentArn String
    Amazon Resource Name (ARN) of the Image Builder Component to associate.
    parameters List<Property Map>
    Configuration block(s) for parameters to configure the component. Detailed below.

    ImageRecipeComponentParameter, ImageRecipeComponentParameterArgs

    Name string
    The name of the component parameter.
    Value string
    The value for the named component parameter.
    Name string
    The name of the component parameter.
    Value string
    The value for the named component parameter.
    name String
    The name of the component parameter.
    value String
    The value for the named component parameter.
    name string
    The name of the component parameter.
    value string
    The value for the named component parameter.
    name str
    The name of the component parameter.
    value str
    The value for the named component parameter.
    name String
    The name of the component parameter.
    value String
    The value for the named component parameter.

    ImageRecipeSystemsManagerAgent, ImageRecipeSystemsManagerAgentArgs

    UninstallAfterBuild bool
    Whether to remove the Systems Manager Agent after the image has been built. Defaults to false.
    UninstallAfterBuild bool
    Whether to remove the Systems Manager Agent after the image has been built. Defaults to false.
    uninstallAfterBuild Boolean
    Whether to remove the Systems Manager Agent after the image has been built. Defaults to false.
    uninstallAfterBuild boolean
    Whether to remove the Systems Manager Agent after the image has been built. Defaults to false.
    uninstall_after_build bool
    Whether to remove the Systems Manager Agent after the image has been built. Defaults to false.
    uninstallAfterBuild Boolean
    Whether to remove the Systems Manager Agent after the image has been built. Defaults to false.

    Import

    Using pulumi import, import aws_imagebuilder_image_recipe resources using the Amazon Resource Name (ARN). For example:

     $ pulumi import aws:imagebuilder/imageRecipe:ImageRecipe example arn:aws:imagebuilder:us-east-1:123456789012:image-recipe/example/1.0.0
    

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.23.0 published on Thursday, Feb 22, 2024 by Pulumi