ContainerRecipe

class ContainerRecipe : KotlinCustomResource

Manages an Image Builder Container Recipe.

Example Usage

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()
.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(aws_ecr_repository.example().name())
.service("ECR")
.build())
.components(ContainerRecipeComponentArgs.builder()
.componentArn(aws_imagebuilder_component.example().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());
}
}

Import

aws_imagebuilder_container_recipe resources can be imported by using the Amazon Resource Name (ARN), e.g.,

$ pulumi import aws:imagebuilder/containerRecipe:ContainerRecipe example arn:aws:imagebuilder:us-east-1:123456789012:container-recipe/example/1.0.0

Properties

Link copied to clipboard
val arn: Output<String>

(Required) Amazon Resource Name (ARN) of the container recipe.

Link copied to clipboard

Ordered configuration block(s) with components for the container recipe. Detailed below.

Link copied to clipboard
val containerType: Output<String>

The type of the container to create. Valid values: DOCKER.

Link copied to clipboard
val dateCreated: Output<String>

Date the container recipe was created.

Link copied to clipboard
val description: Output<String>?

The description of the container recipe.

Link copied to clipboard

The Dockerfile template used to build the image as an inline data blob.

Link copied to clipboard

The Amazon S3 URI for the Dockerfile that will be used to build the container image.

Link copied to clipboard
val encrypted: Output<Boolean>

Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Configuration block used to configure an instance for building and testing container images. Detailed below.

Link copied to clipboard
val kmsKeyId: Output<String>?

The KMS key used to encrypt the container image.

Link copied to clipboard
val name: Output<String>

The name of the container recipe.

Link copied to clipboard
val owner: Output<String>

Owner of the container recipe.

Link copied to clipboard
val parentImage: Output<String>

The base image for the container recipe.

Link copied to clipboard
val platform: Output<String>

Platform of the container recipe.

Link copied to clipboard
val platformOverride: Output<String>?

Specifies the operating system platform when you use a custom base image.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<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.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard

The destination repository for the container image. Detailed below.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<String>

Version of the container recipe. The following attributes are optional:

Link copied to clipboard
val workingDirectory: Output<String>?

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