Try AWS Native preview for resources not in the classic version.
aws.imagebuilder.ContainerRecipe
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Manages an Image Builder Container Recipe.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.imagebuilder.ContainerRecipe("example", {
name: "example",
version: "1.0.0",
containerType: "DOCKER",
parentImage: "arn:aws:imagebuilder:eu-central-1:aws:image/amazon-linux-x86-latest/x.x.x",
targetRepository: {
repositoryName: exampleAwsEcrRepository.name,
service: "ECR",
},
components: [{
componentArn: exampleAwsImagebuilderComponent.arn,
parameters: [
{
name: "Parameter1",
value: "Value1",
},
{
name: "Parameter2",
value: "Value2",
},
],
}],
dockerfileTemplateData: `FROM {{{ imagebuilder:parentImage }}}
{{{ imagebuilder:environments }}}
{{{ imagebuilder:components }}}
`,
});
import pulumi
import pulumi_aws as aws
example = aws.imagebuilder.ContainerRecipe("example",
name="example",
version="1.0.0",
container_type="DOCKER",
parent_image="arn:aws:imagebuilder:eu-central-1:aws:image/amazon-linux-x86-latest/x.x.x",
target_repository={
"repositoryName": example_aws_ecr_repository["name"],
"service": "ECR",
},
components=[{
"componentArn": example_aws_imagebuilder_component["arn"],
"parameters": [
{
"name": "Parameter1",
"value": "Value1",
},
{
"name": "Parameter2",
"value": "Value2",
},
],
}],
dockerfile_template_data="""FROM {{{ imagebuilder:parentImage }}}
{{{ imagebuilder:environments }}}
{{{ imagebuilder:components }}}
""")
package main
import (
"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.NewContainerRecipe(ctx, "example", &imagebuilder.ContainerRecipeArgs{
Name: pulumi.String("example"),
Version: pulumi.String("1.0.0"),
ContainerType: pulumi.String("DOCKER"),
ParentImage: pulumi.String("arn:aws:imagebuilder:eu-central-1:aws:image/amazon-linux-x86-latest/x.x.x"),
TargetRepository: &imagebuilder.ContainerRecipeTargetRepositoryArgs{
RepositoryName: pulumi.Any(exampleAwsEcrRepository.Name),
Service: pulumi.String("ECR"),
},
Components: imagebuilder.ContainerRecipeComponentArray{
&imagebuilder.ContainerRecipeComponentArgs{
ComponentArn: pulumi.Any(exampleAwsImagebuilderComponent.Arn),
Parameters: imagebuilder.ContainerRecipeComponentParameterArray{
&imagebuilder.ContainerRecipeComponentParameterArgs{
Name: pulumi.String("Parameter1"),
Value: pulumi.String("Value1"),
},
&imagebuilder.ContainerRecipeComponentParameterArgs{
Name: pulumi.String("Parameter2"),
Value: pulumi.String("Value2"),
},
},
},
},
DockerfileTemplateData: pulumi.String("FROM {{{ imagebuilder:parentImage }}}\n{{{ imagebuilder:environments }}}\n{{{ imagebuilder:components }}}\n"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.ImageBuilder.ContainerRecipe("example", new()
{
Name = "example",
Version = "1.0.0",
ContainerType = "DOCKER",
ParentImage = "arn:aws:imagebuilder:eu-central-1:aws:image/amazon-linux-x86-latest/x.x.x",
TargetRepository = new Aws.ImageBuilder.Inputs.ContainerRecipeTargetRepositoryArgs
{
RepositoryName = exampleAwsEcrRepository.Name,
Service = "ECR",
},
Components = new[]
{
new Aws.ImageBuilder.Inputs.ContainerRecipeComponentArgs
{
ComponentArn = exampleAwsImagebuilderComponent.Arn,
Parameters = new[]
{
new Aws.ImageBuilder.Inputs.ContainerRecipeComponentParameterArgs
{
Name = "Parameter1",
Value = "Value1",
},
new Aws.ImageBuilder.Inputs.ContainerRecipeComponentParameterArgs
{
Name = "Parameter2",
Value = "Value2",
},
},
},
},
DockerfileTemplateData = @"FROM {{{ imagebuilder:parentImage }}}
{{{ imagebuilder:environments }}}
{{{ imagebuilder:components }}}
",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.imagebuilder.ContainerRecipe;
import com.pulumi.aws.imagebuilder.ContainerRecipeArgs;
import com.pulumi.aws.imagebuilder.inputs.ContainerRecipeTargetRepositoryArgs;
import com.pulumi.aws.imagebuilder.inputs.ContainerRecipeComponentArgs;
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 ContainerRecipe("example", ContainerRecipeArgs.builder()
.name("example")
.version("1.0.0")
.containerType("DOCKER")
.parentImage("arn:aws:imagebuilder:eu-central-1:aws:image/amazon-linux-x86-latest/x.x.x")
.targetRepository(ContainerRecipeTargetRepositoryArgs.builder()
.repositoryName(exampleAwsEcrRepository.name())
.service("ECR")
.build())
.components(ContainerRecipeComponentArgs.builder()
.componentArn(exampleAwsImagebuilderComponent.arn())
.parameters(
ContainerRecipeComponentParameterArgs.builder()
.name("Parameter1")
.value("Value1")
.build(),
ContainerRecipeComponentParameterArgs.builder()
.name("Parameter2")
.value("Value2")
.build())
.build())
.dockerfileTemplateData("""
FROM {{{ imagebuilder:parentImage }}}
{{{ imagebuilder:environments }}}
{{{ imagebuilder:components }}}
""")
.build());
}
}
resources:
example:
type: aws:imagebuilder:ContainerRecipe
properties:
name: example
version: 1.0.0
containerType: DOCKER
parentImage: arn:aws:imagebuilder:eu-central-1:aws:image/amazon-linux-x86-latest/x.x.x
targetRepository:
repositoryName: ${exampleAwsEcrRepository.name}
service: ECR
components:
- componentArn: ${exampleAwsImagebuilderComponent.arn}
parameters:
- name: Parameter1
value: Value1
- name: Parameter2
value: Value2
dockerfileTemplateData: |
FROM {{{ imagebuilder:parentImage }}}
{{{ imagebuilder:environments }}}
{{{ imagebuilder:components }}}
Create ContainerRecipe Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ContainerRecipe(name: string, args: ContainerRecipeArgs, opts?: CustomResourceOptions);
@overload
def ContainerRecipe(resource_name: str,
args: ContainerRecipeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ContainerRecipe(resource_name: str,
opts: Optional[ResourceOptions] = None,
components: Optional[Sequence[ContainerRecipeComponentArgs]] = None,
container_type: Optional[str] = None,
version: Optional[str] = None,
target_repository: Optional[ContainerRecipeTargetRepositoryArgs] = None,
parent_image: Optional[str] = None,
kms_key_id: Optional[str] = None,
instance_configuration: Optional[ContainerRecipeInstanceConfigurationArgs] = None,
name: Optional[str] = None,
dockerfile_template_uri: Optional[str] = None,
platform_override: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
dockerfile_template_data: Optional[str] = None,
description: Optional[str] = None,
working_directory: Optional[str] = None)
func NewContainerRecipe(ctx *Context, name string, args ContainerRecipeArgs, opts ...ResourceOption) (*ContainerRecipe, error)
public ContainerRecipe(string name, ContainerRecipeArgs args, CustomResourceOptions? opts = null)
public ContainerRecipe(String name, ContainerRecipeArgs args)
public ContainerRecipe(String name, ContainerRecipeArgs args, CustomResourceOptions options)
type: aws:imagebuilder:ContainerRecipe
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 ContainerRecipeArgs
- 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 ContainerRecipeArgs
- 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 ContainerRecipeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContainerRecipeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContainerRecipeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var containerRecipeResource = new Aws.ImageBuilder.ContainerRecipe("containerRecipeResource", new()
{
Components = new[]
{
new Aws.ImageBuilder.Inputs.ContainerRecipeComponentArgs
{
ComponentArn = "string",
Parameters = new[]
{
new Aws.ImageBuilder.Inputs.ContainerRecipeComponentParameterArgs
{
Name = "string",
Value = "string",
},
},
},
},
ContainerType = "string",
Version = "string",
TargetRepository = new Aws.ImageBuilder.Inputs.ContainerRecipeTargetRepositoryArgs
{
RepositoryName = "string",
Service = "string",
},
ParentImage = "string",
KmsKeyId = "string",
InstanceConfiguration = new Aws.ImageBuilder.Inputs.ContainerRecipeInstanceConfigurationArgs
{
BlockDeviceMappings = new[]
{
new Aws.ImageBuilder.Inputs.ContainerRecipeInstanceConfigurationBlockDeviceMappingArgs
{
DeviceName = "string",
Ebs = new Aws.ImageBuilder.Inputs.ContainerRecipeInstanceConfigurationBlockDeviceMappingEbsArgs
{
DeleteOnTermination = "string",
Encrypted = "string",
Iops = 0,
KmsKeyId = "string",
SnapshotId = "string",
Throughput = 0,
VolumeSize = 0,
VolumeType = "string",
},
NoDevice = false,
VirtualName = "string",
},
},
Image = "string",
},
Name = "string",
DockerfileTemplateUri = "string",
PlatformOverride = "string",
Tags =
{
{ "string", "string" },
},
DockerfileTemplateData = "string",
Description = "string",
WorkingDirectory = "string",
});
example, err := imagebuilder.NewContainerRecipe(ctx, "containerRecipeResource", &imagebuilder.ContainerRecipeArgs{
Components: imagebuilder.ContainerRecipeComponentArray{
&imagebuilder.ContainerRecipeComponentArgs{
ComponentArn: pulumi.String("string"),
Parameters: imagebuilder.ContainerRecipeComponentParameterArray{
&imagebuilder.ContainerRecipeComponentParameterArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
ContainerType: pulumi.String("string"),
Version: pulumi.String("string"),
TargetRepository: &imagebuilder.ContainerRecipeTargetRepositoryArgs{
RepositoryName: pulumi.String("string"),
Service: pulumi.String("string"),
},
ParentImage: pulumi.String("string"),
KmsKeyId: pulumi.String("string"),
InstanceConfiguration: &imagebuilder.ContainerRecipeInstanceConfigurationArgs{
BlockDeviceMappings: imagebuilder.ContainerRecipeInstanceConfigurationBlockDeviceMappingArray{
&imagebuilder.ContainerRecipeInstanceConfigurationBlockDeviceMappingArgs{
DeviceName: pulumi.String("string"),
Ebs: &imagebuilder.ContainerRecipeInstanceConfigurationBlockDeviceMappingEbsArgs{
DeleteOnTermination: pulumi.String("string"),
Encrypted: pulumi.String("string"),
Iops: pulumi.Int(0),
KmsKeyId: pulumi.String("string"),
SnapshotId: pulumi.String("string"),
Throughput: pulumi.Int(0),
VolumeSize: pulumi.Int(0),
VolumeType: pulumi.String("string"),
},
NoDevice: pulumi.Bool(false),
VirtualName: pulumi.String("string"),
},
},
Image: pulumi.String("string"),
},
Name: pulumi.String("string"),
DockerfileTemplateUri: pulumi.String("string"),
PlatformOverride: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
DockerfileTemplateData: pulumi.String("string"),
Description: pulumi.String("string"),
WorkingDirectory: pulumi.String("string"),
})
var containerRecipeResource = new ContainerRecipe("containerRecipeResource", ContainerRecipeArgs.builder()
.components(ContainerRecipeComponentArgs.builder()
.componentArn("string")
.parameters(ContainerRecipeComponentParameterArgs.builder()
.name("string")
.value("string")
.build())
.build())
.containerType("string")
.version("string")
.targetRepository(ContainerRecipeTargetRepositoryArgs.builder()
.repositoryName("string")
.service("string")
.build())
.parentImage("string")
.kmsKeyId("string")
.instanceConfiguration(ContainerRecipeInstanceConfigurationArgs.builder()
.blockDeviceMappings(ContainerRecipeInstanceConfigurationBlockDeviceMappingArgs.builder()
.deviceName("string")
.ebs(ContainerRecipeInstanceConfigurationBlockDeviceMappingEbsArgs.builder()
.deleteOnTermination("string")
.encrypted("string")
.iops(0)
.kmsKeyId("string")
.snapshotId("string")
.throughput(0)
.volumeSize(0)
.volumeType("string")
.build())
.noDevice(false)
.virtualName("string")
.build())
.image("string")
.build())
.name("string")
.dockerfileTemplateUri("string")
.platformOverride("string")
.tags(Map.of("string", "string"))
.dockerfileTemplateData("string")
.description("string")
.workingDirectory("string")
.build());
container_recipe_resource = aws.imagebuilder.ContainerRecipe("containerRecipeResource",
components=[{
"componentArn": "string",
"parameters": [{
"name": "string",
"value": "string",
}],
}],
container_type="string",
version="string",
target_repository={
"repositoryName": "string",
"service": "string",
},
parent_image="string",
kms_key_id="string",
instance_configuration={
"blockDeviceMappings": [{
"deviceName": "string",
"ebs": {
"deleteOnTermination": "string",
"encrypted": "string",
"iops": 0,
"kmsKeyId": "string",
"snapshotId": "string",
"throughput": 0,
"volumeSize": 0,
"volumeType": "string",
},
"noDevice": False,
"virtualName": "string",
}],
"image": "string",
},
name="string",
dockerfile_template_uri="string",
platform_override="string",
tags={
"string": "string",
},
dockerfile_template_data="string",
description="string",
working_directory="string")
const containerRecipeResource = new aws.imagebuilder.ContainerRecipe("containerRecipeResource", {
components: [{
componentArn: "string",
parameters: [{
name: "string",
value: "string",
}],
}],
containerType: "string",
version: "string",
targetRepository: {
repositoryName: "string",
service: "string",
},
parentImage: "string",
kmsKeyId: "string",
instanceConfiguration: {
blockDeviceMappings: [{
deviceName: "string",
ebs: {
deleteOnTermination: "string",
encrypted: "string",
iops: 0,
kmsKeyId: "string",
snapshotId: "string",
throughput: 0,
volumeSize: 0,
volumeType: "string",
},
noDevice: false,
virtualName: "string",
}],
image: "string",
},
name: "string",
dockerfileTemplateUri: "string",
platformOverride: "string",
tags: {
string: "string",
},
dockerfileTemplateData: "string",
description: "string",
workingDirectory: "string",
});
type: aws:imagebuilder:ContainerRecipe
properties:
components:
- componentArn: string
parameters:
- name: string
value: string
containerType: string
description: string
dockerfileTemplateData: string
dockerfileTemplateUri: string
instanceConfiguration:
blockDeviceMappings:
- deviceName: string
ebs:
deleteOnTermination: string
encrypted: string
iops: 0
kmsKeyId: string
snapshotId: string
throughput: 0
volumeSize: 0
volumeType: string
noDevice: false
virtualName: string
image: string
kmsKeyId: string
name: string
parentImage: string
platformOverride: string
tags:
string: string
targetRepository:
repositoryName: string
service: string
version: string
workingDirectory: string
ContainerRecipe 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 ContainerRecipe resource accepts the following input properties:
- Components
List<Container
Recipe Component> - Ordered configuration block(s) with components for the container recipe. Detailed below.
- Container
Type string - The type of the container to create. Valid values:
DOCKER
. - Parent
Image string - The base image for the container recipe.
- Target
Repository ContainerRecipe Target Repository - The destination repository for the container image. Detailed below.
- Version string
Version of the container recipe.
The following attributes are optional:
- Description string
- The description of the container recipe.
- Dockerfile
Template stringData - The Dockerfile template used to build the image as an inline data blob.
- Dockerfile
Template stringUri - The Amazon S3 URI for the Dockerfile that will be used to build the container image.
- Instance
Configuration ContainerRecipe Instance Configuration - Configuration block used to configure an instance for building and testing container images. Detailed below.
- Kms
Key stringId - The KMS key used to encrypt the container image.
- Name string
- The name of the container recipe.
- Platform
Override string - Specifies the operating system platform when you use a custom base image.
- Dictionary<string, string>
- Key-value map of resource tags for the container recipe. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Working
Directory string - The working directory to be used during build and test workflows.
- Components
[]Container
Recipe Component Args - Ordered configuration block(s) with components for the container recipe. Detailed below.
- Container
Type string - The type of the container to create. Valid values:
DOCKER
. - Parent
Image string - The base image for the container recipe.
- Target
Repository ContainerRecipe Target Repository Args - The destination repository for the container image. Detailed below.
- Version string
Version of the container recipe.
The following attributes are optional:
- Description string
- The description of the container recipe.
- Dockerfile
Template stringData - The Dockerfile template used to build the image as an inline data blob.
- Dockerfile
Template stringUri - The Amazon S3 URI for the Dockerfile that will be used to build the container image.
- Instance
Configuration ContainerRecipe Instance Configuration Args - Configuration block used to configure an instance for building and testing container images. Detailed below.
- Kms
Key stringId - The KMS key used to encrypt the container image.
- Name string
- The name of the container recipe.
- Platform
Override string - Specifies the operating system platform when you use a custom base image.
- map[string]string
- Key-value map of resource tags for the container recipe. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Working
Directory string - The working directory to be used during build and test workflows.
- components
List<Container
Recipe Component> - Ordered configuration block(s) with components for the container recipe. Detailed below.
- container
Type String - The type of the container to create. Valid values:
DOCKER
. - parent
Image String - The base image for the container recipe.
- target
Repository ContainerRecipe Target Repository - The destination repository for the container image. Detailed below.
- version String
Version of the container recipe.
The following attributes are optional:
- description String
- The description of the container recipe.
- dockerfile
Template StringData - The Dockerfile template used to build the image as an inline data blob.
- dockerfile
Template StringUri - The Amazon S3 URI for the Dockerfile that will be used to build the container image.
- instance
Configuration ContainerRecipe Instance Configuration - Configuration block used to configure an instance for building and testing container images. Detailed below.
- kms
Key StringId - The KMS key used to encrypt the container image.
- name String
- The name of the container recipe.
- platform
Override String - Specifies the operating system platform when you use a custom base image.
- Map<String,String>
- Key-value map of resource tags for the container recipe. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - working
Directory String - The working directory to be used during build and test workflows.
- components
Container
Recipe Component[] - Ordered configuration block(s) with components for the container recipe. Detailed below.
- container
Type string - The type of the container to create. Valid values:
DOCKER
. - parent
Image string - The base image for the container recipe.
- target
Repository ContainerRecipe Target Repository - The destination repository for the container image. Detailed below.
- version string
Version of the container recipe.
The following attributes are optional:
- description string
- The description of the container recipe.
- dockerfile
Template stringData - The Dockerfile template used to build the image as an inline data blob.
- dockerfile
Template stringUri - The Amazon S3 URI for the Dockerfile that will be used to build the container image.
- instance
Configuration ContainerRecipe Instance Configuration - Configuration block used to configure an instance for building and testing container images. Detailed below.
- kms
Key stringId - The KMS key used to encrypt the container image.
- name string
- The name of the container recipe.
- platform
Override string - Specifies the operating system platform when you use a custom base image.
- {[key: string]: string}
- Key-value map of resource tags for the container recipe. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - working
Directory string - The working directory to be used during build and test workflows.
- components
Sequence[Container
Recipe Component Args] - Ordered configuration block(s) with components for the container recipe. Detailed below.
- container_
type str - The type of the container to create. Valid values:
DOCKER
. - parent_
image str - The base image for the container recipe.
- target_
repository ContainerRecipe Target Repository Args - The destination repository for the container image. Detailed below.
- version str
Version of the container recipe.
The following attributes are optional:
- description str
- The description of the container recipe.
- dockerfile_
template_ strdata - The Dockerfile template used to build the image as an inline data blob.
- dockerfile_
template_ struri - The Amazon S3 URI for the Dockerfile that will be used to build the container image.
- instance_
configuration ContainerRecipe Instance Configuration Args - Configuration block used to configure an instance for building and testing container images. Detailed below.
- kms_
key_ strid - The KMS key used to encrypt the container image.
- name str
- The name of the container recipe.
- platform_
override str - Specifies the operating system platform when you use a custom base image.
- Mapping[str, str]
- Key-value map of resource tags for the container recipe. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - 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 container recipe. Detailed below.
- container
Type String - The type of the container to create. Valid values:
DOCKER
. - parent
Image String - The base image for the container recipe.
- target
Repository Property Map - The destination repository for the container image. Detailed below.
- version String
Version of the container recipe.
The following attributes are optional:
- description String
- The description of the container recipe.
- dockerfile
Template StringData - The Dockerfile template used to build the image as an inline data blob.
- dockerfile
Template StringUri - The Amazon S3 URI for the Dockerfile that will be used to build the container image.
- instance
Configuration Property Map - Configuration block used to configure an instance for building and testing container images. Detailed below.
- kms
Key StringId - The KMS key used to encrypt the container image.
- name String
- The name of the container recipe.
- platform
Override String - Specifies the operating system platform when you use a custom base image.
- Map<String>
- Key-value map of resource tags for the container recipe. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - working
Directory String - The working directory to be used during build and test workflows.
Outputs
All input properties are implicitly available as output properties. Additionally, the ContainerRecipe resource produces the following output properties:
- Arn string
- (Required) Amazon Resource Name (ARN) of the container recipe.
- Date
Created string - Date the container recipe was created.
- Encrypted bool
- A flag that indicates if the target container is encrypted.
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner string
- Owner of the container recipe.
- Platform string
- Platform of the container recipe.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- (Required) Amazon Resource Name (ARN) of the container recipe.
- Date
Created string - Date the container recipe was created.
- Encrypted bool
- A flag that indicates if the target container is encrypted.
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner string
- Owner of the container recipe.
- Platform string
- Platform of the container recipe.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- (Required) Amazon Resource Name (ARN) of the container recipe.
- date
Created String - Date the container recipe was created.
- encrypted Boolean
- A flag that indicates if the target container is encrypted.
- id String
- The provider-assigned unique ID for this managed resource.
- owner String
- Owner of the container recipe.
- platform String
- Platform of the container recipe.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- (Required) Amazon Resource Name (ARN) of the container recipe.
- date
Created string - Date the container recipe was created.
- encrypted boolean
- A flag that indicates if the target container is encrypted.
- id string
- The provider-assigned unique ID for this managed resource.
- owner string
- Owner of the container recipe.
- platform string
- Platform of the container recipe.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- (Required) Amazon Resource Name (ARN) of the container recipe.
- date_
created str - Date the container recipe was created.
- encrypted bool
- A flag that indicates if the target container is encrypted.
- id str
- The provider-assigned unique ID for this managed resource.
- owner str
- Owner of the container recipe.
- platform str
- Platform of the container recipe.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- (Required) Amazon Resource Name (ARN) of the container recipe.
- date
Created String - Date the container recipe was created.
- encrypted Boolean
- A flag that indicates if the target container is encrypted.
- id String
- The provider-assigned unique ID for this managed resource.
- owner String
- Owner of the container recipe.
- platform String
- Platform of the container recipe.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing ContainerRecipe Resource
Get an existing ContainerRecipe 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?: ContainerRecipeState, opts?: CustomResourceOptions): ContainerRecipe
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
components: Optional[Sequence[ContainerRecipeComponentArgs]] = None,
container_type: Optional[str] = None,
date_created: Optional[str] = None,
description: Optional[str] = None,
dockerfile_template_data: Optional[str] = None,
dockerfile_template_uri: Optional[str] = None,
encrypted: Optional[bool] = None,
instance_configuration: Optional[ContainerRecipeInstanceConfigurationArgs] = None,
kms_key_id: Optional[str] = None,
name: Optional[str] = None,
owner: Optional[str] = None,
parent_image: Optional[str] = None,
platform: Optional[str] = None,
platform_override: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
target_repository: Optional[ContainerRecipeTargetRepositoryArgs] = None,
version: Optional[str] = None,
working_directory: Optional[str] = None) -> ContainerRecipe
func GetContainerRecipe(ctx *Context, name string, id IDInput, state *ContainerRecipeState, opts ...ResourceOption) (*ContainerRecipe, error)
public static ContainerRecipe Get(string name, Input<string> id, ContainerRecipeState? state, CustomResourceOptions? opts = null)
public static ContainerRecipe get(String name, Output<String> id, ContainerRecipeState 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.
- Arn string
- (Required) Amazon Resource Name (ARN) of the container recipe.
- Components
List<Container
Recipe Component> - Ordered configuration block(s) with components for the container recipe. Detailed below.
- Container
Type string - The type of the container to create. Valid values:
DOCKER
. - Date
Created string - Date the container recipe was created.
- Description string
- The description of the container recipe.
- Dockerfile
Template stringData - The Dockerfile template used to build the image as an inline data blob.
- Dockerfile
Template stringUri - The Amazon S3 URI for the Dockerfile that will be used to build the container image.
- Encrypted bool
- A flag that indicates if the target container is encrypted.
- Instance
Configuration ContainerRecipe Instance Configuration - Configuration block used to configure an instance for building and testing container images. Detailed below.
- Kms
Key stringId - The KMS key used to encrypt the container image.
- Name string
- The name of the container recipe.
- Owner string
- Owner of the container recipe.
- Parent
Image string - The base image for the container recipe.
- Platform string
- Platform of the container recipe.
- Platform
Override string - Specifies the operating system platform when you use a custom base image.
- Dictionary<string, string>
- Key-value map of resource tags for the container recipe. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Target
Repository ContainerRecipe Target Repository - The destination repository for the container image. Detailed below.
- Version string
Version of the container recipe.
The following attributes are optional:
- Working
Directory string - The working directory to be used during build and test workflows.
- Arn string
- (Required) Amazon Resource Name (ARN) of the container recipe.
- Components
[]Container
Recipe Component Args - Ordered configuration block(s) with components for the container recipe. Detailed below.
- Container
Type string - The type of the container to create. Valid values:
DOCKER
. - Date
Created string - Date the container recipe was created.
- Description string
- The description of the container recipe.
- Dockerfile
Template stringData - The Dockerfile template used to build the image as an inline data blob.
- Dockerfile
Template stringUri - The Amazon S3 URI for the Dockerfile that will be used to build the container image.
- Encrypted bool
- A flag that indicates if the target container is encrypted.
- Instance
Configuration ContainerRecipe Instance Configuration Args - Configuration block used to configure an instance for building and testing container images. Detailed below.
- Kms
Key stringId - The KMS key used to encrypt the container image.
- Name string
- The name of the container recipe.
- Owner string
- Owner of the container recipe.
- Parent
Image string - The base image for the container recipe.
- Platform string
- Platform of the container recipe.
- Platform
Override string - Specifies the operating system platform when you use a custom base image.
- map[string]string
- Key-value map of resource tags for the container recipe. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Target
Repository ContainerRecipe Target Repository Args - The destination repository for the container image. Detailed below.
- Version string
Version of the container recipe.
The following attributes are optional:
- Working
Directory string - The working directory to be used during build and test workflows.
- arn String
- (Required) Amazon Resource Name (ARN) of the container recipe.
- components
List<Container
Recipe Component> - Ordered configuration block(s) with components for the container recipe. Detailed below.
- container
Type String - The type of the container to create. Valid values:
DOCKER
. - date
Created String - Date the container recipe was created.
- description String
- The description of the container recipe.
- dockerfile
Template StringData - The Dockerfile template used to build the image as an inline data blob.
- dockerfile
Template StringUri - The Amazon S3 URI for the Dockerfile that will be used to build the container image.
- encrypted Boolean
- A flag that indicates if the target container is encrypted.
- instance
Configuration ContainerRecipe Instance Configuration - Configuration block used to configure an instance for building and testing container images. Detailed below.
- kms
Key StringId - The KMS key used to encrypt the container image.
- name String
- The name of the container recipe.
- owner String
- Owner of the container recipe.
- parent
Image String - The base image for the container recipe.
- platform String
- Platform of the container recipe.
- platform
Override String - Specifies the operating system platform when you use a custom base image.
- Map<String,String>
- Key-value map of resource tags for the container recipe. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - target
Repository ContainerRecipe Target Repository - The destination repository for the container image. Detailed below.
- version String
Version of the container recipe.
The following attributes are optional:
- working
Directory String - The working directory to be used during build and test workflows.
- arn string
- (Required) Amazon Resource Name (ARN) of the container recipe.
- components
Container
Recipe Component[] - Ordered configuration block(s) with components for the container recipe. Detailed below.
- container
Type string - The type of the container to create. Valid values:
DOCKER
. - date
Created string - Date the container recipe was created.
- description string
- The description of the container recipe.
- dockerfile
Template stringData - The Dockerfile template used to build the image as an inline data blob.
- dockerfile
Template stringUri - The Amazon S3 URI for the Dockerfile that will be used to build the container image.
- encrypted boolean
- A flag that indicates if the target container is encrypted.
- instance
Configuration ContainerRecipe Instance Configuration - Configuration block used to configure an instance for building and testing container images. Detailed below.
- kms
Key stringId - The KMS key used to encrypt the container image.
- name string
- The name of the container recipe.
- owner string
- Owner of the container recipe.
- parent
Image string - The base image for the container recipe.
- platform string
- Platform of the container recipe.
- platform
Override string - Specifies the operating system platform when you use a custom base image.
- {[key: string]: string}
- Key-value map of resource tags for the container recipe. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - target
Repository ContainerRecipe Target Repository - The destination repository for the container image. Detailed below.
- version string
Version of the container recipe.
The following attributes are optional:
- working
Directory string - The working directory to be used during build and test workflows.
- arn str
- (Required) Amazon Resource Name (ARN) of the container recipe.
- components
Sequence[Container
Recipe Component Args] - Ordered configuration block(s) with components for the container recipe. Detailed below.
- container_
type str - The type of the container to create. Valid values:
DOCKER
. - date_
created str - Date the container recipe was created.
- description str
- The description of the container recipe.
- dockerfile_
template_ strdata - The Dockerfile template used to build the image as an inline data blob.
- dockerfile_
template_ struri - The Amazon S3 URI for the Dockerfile that will be used to build the container image.
- encrypted bool
- A flag that indicates if the target container is encrypted.
- instance_
configuration ContainerRecipe Instance Configuration Args - Configuration block used to configure an instance for building and testing container images. Detailed below.
- kms_
key_ strid - The KMS key used to encrypt the container image.
- name str
- The name of the container recipe.
- owner str
- Owner of the container recipe.
- parent_
image str - The base image for the container recipe.
- platform str
- Platform of the container recipe.
- platform_
override str - Specifies the operating system platform when you use a custom base image.
- Mapping[str, str]
- Key-value map of resource tags for the container recipe. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - target_
repository ContainerRecipe Target Repository Args - The destination repository for the container image. Detailed below.
- version str
Version of the container recipe.
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 container recipe.
- components List<Property Map>
- Ordered configuration block(s) with components for the container recipe. Detailed below.
- container
Type String - The type of the container to create. Valid values:
DOCKER
. - date
Created String - Date the container recipe was created.
- description String
- The description of the container recipe.
- dockerfile
Template StringData - The Dockerfile template used to build the image as an inline data blob.
- dockerfile
Template StringUri - The Amazon S3 URI for the Dockerfile that will be used to build the container image.
- encrypted Boolean
- A flag that indicates if the target container is encrypted.
- instance
Configuration Property Map - Configuration block used to configure an instance for building and testing container images. Detailed below.
- kms
Key StringId - The KMS key used to encrypt the container image.
- name String
- The name of the container recipe.
- owner String
- Owner of the container recipe.
- parent
Image String - The base image for the container recipe.
- platform String
- Platform of the container recipe.
- platform
Override String - Specifies the operating system platform when you use a custom base image.
- Map<String>
- Key-value map of resource tags for the container recipe. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - target
Repository Property Map - The destination repository for the container image. Detailed below.
- version String
Version of the container recipe.
The following attributes are optional:
- working
Directory String - The working directory to be used during build and test workflows.
Supporting Types
ContainerRecipeComponent, ContainerRecipeComponentArgs
- Component
Arn string - Amazon Resource Name (ARN) of the Image Builder Component to associate.
- Parameters
List<Container
Recipe Component Parameter> - Configuration block(s) for parameters to configure the component. Detailed below.
- Component
Arn string - Amazon Resource Name (ARN) of the Image Builder Component to associate.
- Parameters
[]Container
Recipe Component Parameter - Configuration block(s) for parameters to configure the component. Detailed below.
- component
Arn String - Amazon Resource Name (ARN) of the Image Builder Component to associate.
- parameters
List<Container
Recipe Component Parameter> - Configuration block(s) for parameters to configure the component. Detailed below.
- component
Arn string - Amazon Resource Name (ARN) of the Image Builder Component to associate.
- parameters
Container
Recipe Component Parameter[] - 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[Container
Recipe Component Parameter] - Configuration block(s) for parameters to configure the component. Detailed below.
- component
Arn 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.
ContainerRecipeComponentParameter, ContainerRecipeComponentParameterArgs
ContainerRecipeInstanceConfiguration, ContainerRecipeInstanceConfigurationArgs
- Block
Device List<ContainerMappings Recipe Instance Configuration Block Device Mapping> - Configuration block(s) with block device mappings for the container recipe. Detailed below.
- Image string
- The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
- Block
Device []ContainerMappings Recipe Instance Configuration Block Device Mapping - Configuration block(s) with block device mappings for the container recipe. Detailed below.
- Image string
- The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
- block
Device List<ContainerMappings Recipe Instance Configuration Block Device Mapping> - Configuration block(s) with block device mappings for the container recipe. Detailed below.
- image String
- The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
- block
Device ContainerMappings Recipe Instance Configuration Block Device Mapping[] - Configuration block(s) with block device mappings for the container recipe. Detailed below.
- image string
- The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
- block_
device_ Sequence[Containermappings Recipe Instance Configuration Block Device Mapping] - Configuration block(s) with block device mappings for the container recipe. Detailed below.
- image str
- The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
- block
Device List<Property Map>Mappings - Configuration block(s) with block device mappings for the container recipe. Detailed below.
- image String
- The AMI ID to use as the base image for a container build and test instance. If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.
ContainerRecipeInstanceConfigurationBlockDeviceMapping, ContainerRecipeInstanceConfigurationBlockDeviceMappingArgs
- Device
Name string - Name of the device. For example,
/dev/sda
or/dev/xvdb
. - Ebs
Container
Recipe Instance Configuration Block Device Mapping Ebs - 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 string - Virtual device name. For example,
ephemeral0
. Instance store volumes are numbered starting from 0.
- Device
Name string - Name of the device. For example,
/dev/sda
or/dev/xvdb
. - Ebs
Container
Recipe Instance Configuration Block Device Mapping Ebs - 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 string - Virtual device name. For example,
ephemeral0
. Instance store volumes are numbered starting from 0.
- device
Name String - Name of the device. For example,
/dev/sda
or/dev/xvdb
. - ebs
Container
Recipe Instance Configuration Block Device Mapping Ebs - Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below.
- no
Device Boolean - Set to
true
to remove a mapping from the parent image. - virtual
Name String - Virtual device name. For example,
ephemeral0
. Instance store volumes are numbered starting from 0.
- device
Name string - Name of the device. For example,
/dev/sda
or/dev/xvdb
. - ebs
Container
Recipe Instance Configuration Block Device Mapping Ebs - Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below.
- no
Device boolean - Set to
true
to remove a mapping from the parent image. - virtual
Name 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
Container
Recipe Instance Configuration Block Device Mapping Ebs - 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.
- device
Name 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.
- no
Device Boolean - Set to
true
to remove a mapping from the parent image. - virtual
Name String - Virtual device name. For example,
ephemeral0
. Instance store volumes are numbered starting from 0.
ContainerRecipeInstanceConfigurationBlockDeviceMappingEbs, ContainerRecipeInstanceConfigurationBlockDeviceMappingEbsArgs
- Delete
On stringTermination - 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
orio2
volume. - Kms
Key stringId - Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption.
- Snapshot
Id string - 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 string - Type of the volume. For example,
gp2
orio2
.
- Delete
On stringTermination - 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
orio2
volume. - Kms
Key stringId - Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption.
- Snapshot
Id string - 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 string - Type of the volume. For example,
gp2
orio2
.
- delete
On StringTermination - 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
orio2
volume. - kms
Key StringId - Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption.
- snapshot
Id String - Identifier of the EC2 Volume Snapshot.
- throughput Integer
- For GP3 volumes only. The throughput in MiB/s that the volume supports.
- volume
Size Integer - Size of the volume, in GiB.
- volume
Type String - Type of the volume. For example,
gp2
orio2
.
- delete
On stringTermination - 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
orio2
volume. - kms
Key stringId - Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption.
- snapshot
Id string - Identifier of the EC2 Volume Snapshot.
- throughput number
- For GP3 volumes only. The throughput in MiB/s that the volume supports.
- volume
Size number - Size of the volume, in GiB.
- volume
Type string - Type of the volume. For example,
gp2
orio2
.
- delete_
on_ strtermination - 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
orio2
volume. - kms_
key_ strid - 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
orio2
.
- delete
On StringTermination - 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
orio2
volume. - kms
Key StringId - Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption.
- snapshot
Id String - Identifier of the EC2 Volume Snapshot.
- throughput Number
- For GP3 volumes only. The throughput in MiB/s that the volume supports.
- volume
Size Number - Size of the volume, in GiB.
- volume
Type String - Type of the volume. For example,
gp2
orio2
.
ContainerRecipeTargetRepository, ContainerRecipeTargetRepositoryArgs
- Repository
Name string - The name of the container repository where the output container image is stored. This name is prefixed by the repository location.
- Service string
- The service in which this image is registered. Valid values:
ECR
.
- Repository
Name string - The name of the container repository where the output container image is stored. This name is prefixed by the repository location.
- Service string
- The service in which this image is registered. Valid values:
ECR
.
- repository
Name String - The name of the container repository where the output container image is stored. This name is prefixed by the repository location.
- service String
- The service in which this image is registered. Valid values:
ECR
.
- repository
Name string - The name of the container repository where the output container image is stored. This name is prefixed by the repository location.
- service string
- The service in which this image is registered. Valid values:
ECR
.
- repository_
name str - The name of the container repository where the output container image is stored. This name is prefixed by the repository location.
- service str
- The service in which this image is registered. Valid values:
ECR
.
- repository
Name String - The name of the container repository where the output container image is stored. This name is prefixed by the repository location.
- service String
- The service in which this image is registered. Valid values:
ECR
.
Import
Using pulumi import
, import aws_imagebuilder_container_recipe
resources using the Amazon Resource Name (ARN). For example:
$ pulumi import aws:imagebuilder/containerRecipe:ContainerRecipe example arn:aws:imagebuilder:us-east-1:123456789012:container-recipe/example/1.0.0
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.