We recommend new projects start with resources from the AWS provider.
aws-native.imagebuilder.ImageRecipe
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource schema for AWS::ImageBuilder::ImageRecipe
Create ImageRecipe Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ImageRecipe(name: string, args: ImageRecipeArgs, opts?: CustomResourceOptions);@overload
def ImageRecipe(resource_name: str,
                args: ImageRecipeArgs,
                opts: Optional[ResourceOptions] = None)
@overload
def ImageRecipe(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                components: Optional[Sequence[ImageRecipeComponentConfigurationArgs]] = None,
                parent_image: Optional[str] = None,
                version: Optional[str] = None,
                additional_instance_configuration: Optional[ImageRecipeAdditionalInstanceConfigurationArgs] = None,
                block_device_mappings: Optional[Sequence[ImageRecipeInstanceBlockDeviceMappingArgs]] = None,
                description: Optional[str] = None,
                name: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                working_directory: Optional[str] = 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-native:imagebuilder:ImageRecipe
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ImageRecipe resource accepts the following input properties:
- Components
List<Pulumi.Aws Native. Image Builder. Inputs. Image Recipe Component Configuration> 
- The components of the image recipe.
- ParentImage string
- The parent image of the image recipe.
- Version string
- The version of the image recipe.
- AdditionalInstance Pulumi.Configuration Aws Native. Image Builder. Inputs. Image Recipe Additional Instance Configuration 
- Specify additional settings and launch scripts for your build instances.
- BlockDevice List<Pulumi.Mappings Aws Native. Image Builder. Inputs. Image Recipe Instance Block Device Mapping> 
- The block device mappings to apply when creating images from this recipe.
- Description string
- The description of the image recipe.
- Name string
- The name of the image recipe.
- Dictionary<string, string>
- The tags of the image recipe.
- WorkingDirectory string
- The working directory to be used during build and test workflows.
- Components
[]ImageRecipe Component Configuration Args 
- The components of the image recipe.
- ParentImage string
- The parent image of the image recipe.
- Version string
- The version of the image recipe.
- AdditionalInstance ImageConfiguration Recipe Additional Instance Configuration Args 
- Specify additional settings and launch scripts for your build instances.
- BlockDevice []ImageMappings Recipe Instance Block Device Mapping Args 
- The block device mappings to apply when creating images from this recipe.
- Description string
- The description of the image recipe.
- Name string
- The name of the image recipe.
- map[string]string
- The tags of the image recipe.
- WorkingDirectory string
- The working directory to be used during build and test workflows.
- components
List<ImageRecipe Component Configuration> 
- The components of the image recipe.
- parentImage String
- The parent image of the image recipe.
- version String
- The version of the image recipe.
- additionalInstance ImageConfiguration Recipe Additional Instance Configuration 
- Specify additional settings and launch scripts for your build instances.
- blockDevice List<ImageMappings Recipe Instance Block Device Mapping> 
- The block device mappings to apply when creating images from this recipe.
- description String
- The description of the image recipe.
- name String
- The name of the image recipe.
- Map<String,String>
- The tags of the image recipe.
- workingDirectory String
- The working directory to be used during build and test workflows.
- components
ImageRecipe Component Configuration[] 
- The components of the image recipe.
- parentImage string
- The parent image of the image recipe.
- version string
- The version of the image recipe.
- additionalInstance ImageConfiguration Recipe Additional Instance Configuration 
- Specify additional settings and launch scripts for your build instances.
- blockDevice ImageMappings Recipe Instance Block Device Mapping[] 
- The block device mappings to apply when creating images from this recipe.
- description string
- The description of the image recipe.
- name string
- The name of the image recipe.
- {[key: string]: string}
- The tags of the image recipe.
- workingDirectory string
- The working directory to be used during build and test workflows.
- components
Sequence[ImageRecipe Component Configuration Args] 
- The components of the image recipe.
- parent_image str
- The parent image of the image recipe.
- version str
- The version of the image recipe.
- additional_instance_ Imageconfiguration Recipe Additional Instance Configuration Args 
- Specify additional settings and launch scripts for your build instances.
- block_device_ Sequence[Imagemappings Recipe Instance Block Device Mapping Args] 
- The block device mappings to apply when creating images from this recipe.
- description str
- The description of the image recipe.
- name str
- The name of the image recipe.
- Mapping[str, str]
- The tags of the image recipe.
- working_directory str
- The working directory to be used during build and test workflows.
- components List<Property Map>
- The components of the image recipe.
- parentImage String
- The parent image of the image recipe.
- version String
- The version of the image recipe.
- additionalInstance Property MapConfiguration 
- Specify additional settings and launch scripts for your build instances.
- blockDevice List<Property Map>Mappings 
- The block device mappings to apply when creating images from this recipe.
- description String
- The description of the image recipe.
- name String
- The name of the image recipe.
- Map<String>
- The tags of the image recipe.
- 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:
Supporting Types
ImageRecipeAdditionalInstanceConfiguration, ImageRecipeAdditionalInstanceConfigurationArgs          
- SystemsManager Pulumi.Agent Aws Native. Image Builder. Inputs. Image Recipe Systems Manager Agent 
- Contains settings for the SSM agent on your build instance.
- UserData stringOverride 
- Use this property to provide commands or a command script to run when you launch your build instance.
- SystemsManager ImageAgent Recipe Systems Manager Agent 
- Contains settings for the SSM agent on your build instance.
- UserData stringOverride 
- Use this property to provide commands or a command script to run when you launch your build instance.
- systemsManager ImageAgent Recipe Systems Manager Agent 
- Contains settings for the SSM agent on your build instance.
- userData StringOverride 
- Use this property to provide commands or a command script to run when you launch your build instance.
- systemsManager ImageAgent Recipe Systems Manager Agent 
- Contains settings for the SSM agent on your build instance.
- userData stringOverride 
- Use this property to provide commands or a command script to run when you launch your build instance.
- systems_manager_ Imageagent Recipe Systems Manager Agent 
- Contains settings for the SSM agent on your build instance.
- user_data_ stroverride 
- Use this property to provide commands or a command script to run when you launch your build instance.
- systemsManager Property MapAgent 
- Contains settings for the SSM agent on your build instance.
- userData StringOverride 
- Use this property to provide commands or a command script to run when you launch your build instance.
ImageRecipeComponentConfiguration, ImageRecipeComponentConfigurationArgs        
- ComponentArn string
- The Amazon Resource Name (ARN) of the component.
- Parameters
List<Pulumi.Aws Native. Image Builder. Inputs. Image Recipe Component Parameter> 
- A group of parameter settings that are used to configure the component for a specific recipe.
- ComponentArn string
- The Amazon Resource Name (ARN) of the component.
- Parameters
[]ImageRecipe Component Parameter 
- A group of parameter settings that are used to configure the component for a specific recipe.
- componentArn String
- The Amazon Resource Name (ARN) of the component.
- parameters
List<ImageRecipe Component Parameter> 
- A group of parameter settings that are used to configure the component for a specific recipe.
- componentArn string
- The Amazon Resource Name (ARN) of the component.
- parameters
ImageRecipe Component Parameter[] 
- A group of parameter settings that are used to configure the component for a specific recipe.
- component_arn str
- The Amazon Resource Name (ARN) of the component.
- parameters
Sequence[ImageRecipe Component Parameter] 
- A group of parameter settings that are used to configure the component for a specific recipe.
- componentArn String
- The Amazon Resource Name (ARN) of the component.
- parameters List<Property Map>
- A group of parameter settings that are used to configure the component for a specific recipe.
ImageRecipeComponentParameter, ImageRecipeComponentParameterArgs        
ImageRecipeEbsInstanceBlockDeviceSpecification, ImageRecipeEbsInstanceBlockDeviceSpecificationArgs              
- DeleteOn boolTermination 
- Use to configure delete on termination of the associated device.
- Encrypted bool
- Use to configure device encryption.
- Iops int
- Use to configure device IOPS.
- KmsKey stringId 
- Use to configure the KMS key to use when encrypting the device.
- SnapshotId string
- The snapshot that defines the device contents.
- Throughput int
- For GP3 volumes only - The throughput in MiB/s that the volume supports.
- VolumeSize int
- Use to override the device's volume size.
- VolumeType Pulumi.Aws Native. Image Builder. Image Recipe Ebs Instance Block Device Specification Volume Type 
- Use to override the device's volume type.
- DeleteOn boolTermination 
- Use to configure delete on termination of the associated device.
- Encrypted bool
- Use to configure device encryption.
- Iops int
- Use to configure device IOPS.
- KmsKey stringId 
- Use to configure the KMS key to use when encrypting the device.
- SnapshotId string
- The snapshot that defines the device contents.
- Throughput int
- For GP3 volumes only - The throughput in MiB/s that the volume supports.
- VolumeSize int
- Use to override the device's volume size.
- VolumeType ImageRecipe Ebs Instance Block Device Specification Volume Type 
- Use to override the device's volume type.
- deleteOn BooleanTermination 
- Use to configure delete on termination of the associated device.
- encrypted Boolean
- Use to configure device encryption.
- iops Integer
- Use to configure device IOPS.
- kmsKey StringId 
- Use to configure the KMS key to use when encrypting the device.
- snapshotId String
- The snapshot that defines the device contents.
- throughput Integer
- For GP3 volumes only - The throughput in MiB/s that the volume supports.
- volumeSize Integer
- Use to override the device's volume size.
- volumeType ImageRecipe Ebs Instance Block Device Specification Volume Type 
- Use to override the device's volume type.
- deleteOn booleanTermination 
- Use to configure delete on termination of the associated device.
- encrypted boolean
- Use to configure device encryption.
- iops number
- Use to configure device IOPS.
- kmsKey stringId 
- Use to configure the KMS key to use when encrypting the device.
- snapshotId string
- The snapshot that defines the device contents.
- throughput number
- For GP3 volumes only - The throughput in MiB/s that the volume supports.
- volumeSize number
- Use to override the device's volume size.
- volumeType ImageRecipe Ebs Instance Block Device Specification Volume Type 
- Use to override the device's volume type.
- delete_on_ booltermination 
- Use to configure delete on termination of the associated device.
- encrypted bool
- Use to configure device encryption.
- iops int
- Use to configure device IOPS.
- kms_key_ strid 
- Use to configure the KMS key to use when encrypting the device.
- snapshot_id str
- The snapshot that defines the device contents.
- throughput int
- For GP3 volumes only - The throughput in MiB/s that the volume supports.
- volume_size int
- Use to override the device's volume size.
- volume_type ImageRecipe Ebs Instance Block Device Specification Volume Type 
- Use to override the device's volume type.
- deleteOn BooleanTermination 
- Use to configure delete on termination of the associated device.
- encrypted Boolean
- Use to configure device encryption.
- iops Number
- Use to configure device IOPS.
- kmsKey StringId 
- Use to configure the KMS key to use when encrypting the device.
- snapshotId String
- The snapshot that defines the device contents.
- throughput Number
- For GP3 volumes only - The throughput in MiB/s that the volume supports.
- volumeSize Number
- Use to override the device's volume size.
- volumeType "standard" | "io1" | "io2" | "gp2" | "gp3" | "sc1" | "st1"
- Use to override the device's volume type.
ImageRecipeEbsInstanceBlockDeviceSpecificationVolumeType, ImageRecipeEbsInstanceBlockDeviceSpecificationVolumeTypeArgs                  
- Standard
- standard
- Io1
- io1
- Io2
- io2
- Gp2
- gp2
- Gp3
- gp3
- Sc1
- sc1
- St1
- st1
- ImageRecipe Ebs Instance Block Device Specification Volume Type Standard 
- standard
- ImageRecipe Ebs Instance Block Device Specification Volume Type Io1 
- io1
- ImageRecipe Ebs Instance Block Device Specification Volume Type Io2 
- io2
- ImageRecipe Ebs Instance Block Device Specification Volume Type Gp2 
- gp2
- ImageRecipe Ebs Instance Block Device Specification Volume Type Gp3 
- gp3
- ImageRecipe Ebs Instance Block Device Specification Volume Type Sc1 
- sc1
- ImageRecipe Ebs Instance Block Device Specification Volume Type St1 
- st1
- Standard
- standard
- Io1
- io1
- Io2
- io2
- Gp2
- gp2
- Gp3
- gp3
- Sc1
- sc1
- St1
- st1
- Standard
- standard
- Io1
- io1
- Io2
- io2
- Gp2
- gp2
- Gp3
- gp3
- Sc1
- sc1
- St1
- st1
- STANDARD
- standard
- IO1
- io1
- IO2
- io2
- GP2
- gp2
- GP3
- gp3
- SC1
- sc1
- ST1
- st1
- "standard"
- standard
- "io1"
- io1
- "io2"
- io2
- "gp2"
- gp2
- "gp3"
- gp3
- "sc1"
- sc1
- "st1"
- st1
ImageRecipeInstanceBlockDeviceMapping, ImageRecipeInstanceBlockDeviceMappingArgs            
- DeviceName string
- The device to which these mappings apply.
- Ebs
Pulumi.Aws Native. Image Builder. Inputs. Image Recipe Ebs Instance Block Device Specification 
- Use to manage Amazon EBS-specific configuration for this mapping.
- NoDevice string
- Use to remove a mapping from the parent image.
- VirtualName string
- Use to manage instance ephemeral devices.
- DeviceName string
- The device to which these mappings apply.
- Ebs
ImageRecipe Ebs Instance Block Device Specification 
- Use to manage Amazon EBS-specific configuration for this mapping.
- NoDevice string
- Use to remove a mapping from the parent image.
- VirtualName string
- Use to manage instance ephemeral devices.
- deviceName String
- The device to which these mappings apply.
- ebs
ImageRecipe Ebs Instance Block Device Specification 
- Use to manage Amazon EBS-specific configuration for this mapping.
- noDevice String
- Use to remove a mapping from the parent image.
- virtualName String
- Use to manage instance ephemeral devices.
- deviceName string
- The device to which these mappings apply.
- ebs
ImageRecipe Ebs Instance Block Device Specification 
- Use to manage Amazon EBS-specific configuration for this mapping.
- noDevice string
- Use to remove a mapping from the parent image.
- virtualName string
- Use to manage instance ephemeral devices.
- device_name str
- The device to which these mappings apply.
- ebs
ImageRecipe Ebs Instance Block Device Specification 
- Use to manage Amazon EBS-specific configuration for this mapping.
- no_device str
- Use to remove a mapping from the parent image.
- virtual_name str
- Use to manage instance ephemeral devices.
- deviceName String
- The device to which these mappings apply.
- ebs Property Map
- Use to manage Amazon EBS-specific configuration for this mapping.
- noDevice String
- Use to remove a mapping from the parent image.
- virtualName String
- Use to manage instance ephemeral devices.
ImageRecipeSystemsManagerAgent, ImageRecipeSystemsManagerAgentArgs          
- UninstallAfter boolBuild 
- Controls whether the SSM agent is removed from your final build image, prior to creating the new AMI. If this is set to true, then the agent is removed from the final image. If it's set to false, then the agent is left in, so that it is included in the new AMI. The default value is false.
- UninstallAfter boolBuild 
- Controls whether the SSM agent is removed from your final build image, prior to creating the new AMI. If this is set to true, then the agent is removed from the final image. If it's set to false, then the agent is left in, so that it is included in the new AMI. The default value is false.
- uninstallAfter BooleanBuild 
- Controls whether the SSM agent is removed from your final build image, prior to creating the new AMI. If this is set to true, then the agent is removed from the final image. If it's set to false, then the agent is left in, so that it is included in the new AMI. The default value is false.
- uninstallAfter booleanBuild 
- Controls whether the SSM agent is removed from your final build image, prior to creating the new AMI. If this is set to true, then the agent is removed from the final image. If it's set to false, then the agent is left in, so that it is included in the new AMI. The default value is false.
- uninstall_after_ boolbuild 
- Controls whether the SSM agent is removed from your final build image, prior to creating the new AMI. If this is set to true, then the agent is removed from the final image. If it's set to false, then the agent is left in, so that it is included in the new AMI. The default value is false.
- uninstallAfter BooleanBuild 
- Controls whether the SSM agent is removed from your final build image, prior to creating the new AMI. If this is set to true, then the agent is removed from the final image. If it's set to false, then the agent is left in, so that it is included in the new AMI. The default value is false.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.