Image

class Image : KotlinCustomResource

Manages an Image Builder Image.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.imagebuilder.Image("example", {
distributionConfigurationArn: exampleAwsImagebuilderDistributionConfiguration.arn,
imageRecipeArn: exampleAwsImagebuilderImageRecipe.arn,
infrastructureConfigurationArn: exampleAwsImagebuilderInfrastructureConfiguration.arn,
});
import pulumi
import pulumi_aws as aws
example = aws.imagebuilder.Image("example",
distribution_configuration_arn=example_aws_imagebuilder_distribution_configuration["arn"],
image_recipe_arn=example_aws_imagebuilder_image_recipe["arn"],
infrastructure_configuration_arn=example_aws_imagebuilder_infrastructure_configuration["arn"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.ImageBuilder.Image("example", new()
{
DistributionConfigurationArn = exampleAwsImagebuilderDistributionConfiguration.Arn,
ImageRecipeArn = exampleAwsImagebuilderImageRecipe.Arn,
InfrastructureConfigurationArn = exampleAwsImagebuilderInfrastructureConfiguration.Arn,
});
});
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.NewImage(ctx, "example", &imagebuilder.ImageArgs{
DistributionConfigurationArn: pulumi.Any(exampleAwsImagebuilderDistributionConfiguration.Arn),
ImageRecipeArn: pulumi.Any(exampleAwsImagebuilderImageRecipe.Arn),
InfrastructureConfigurationArn: pulumi.Any(exampleAwsImagebuilderInfrastructureConfiguration.Arn),
})
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.Image;
import com.pulumi.aws.imagebuilder.ImageArgs;
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 Image("example", ImageArgs.builder()
.distributionConfigurationArn(exampleAwsImagebuilderDistributionConfiguration.arn())
.imageRecipeArn(exampleAwsImagebuilderImageRecipe.arn())
.infrastructureConfigurationArn(exampleAwsImagebuilderInfrastructureConfiguration.arn())
.build());
}
}
resources:
example:
type: aws:imagebuilder:Image
properties:
distributionConfigurationArn: ${exampleAwsImagebuilderDistributionConfiguration.arn}
imageRecipeArn: ${exampleAwsImagebuilderImageRecipe.arn}
infrastructureConfigurationArn: ${exampleAwsImagebuilderInfrastructureConfiguration.arn}

Import

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

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

Properties

Link copied to clipboard
val arn: Output<String>

Amazon Resource Name (ARN) of the image.

Link copied to clipboard

Amazon Resource Name (ARN) of the container recipe.

Link copied to clipboard
val dateCreated: Output<String>

Date the image was created.

Link copied to clipboard

Amazon Resource Name (ARN) of the Image Builder Distribution Configuration.

Link copied to clipboard

Whether additional information about the image being created is collected. Defaults to true.

Link copied to clipboard
val executionRole: Output<String>

Amazon Resource Name (ARN) of the service-linked role to be used by Image Builder to execute workflows.

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

Amazon Resource Name (ARN) of the image recipe.

Link copied to clipboard

Configuration block with image scanning configuration. Detailed below.

Link copied to clipboard

Configuration block with image tests configuration. Detailed below.

Link copied to clipboard

Amazon Resource Name (ARN) of the Image Builder Infrastructure Configuration. The following arguments are optional:

Link copied to clipboard
val name: Output<String>

Name of the AMI.

Link copied to clipboard
val osVersion: Output<String>

Operating System version of the image.

Link copied to clipboard

List of objects with resources created by the image.

Link copied to clipboard
val platform: Output<String>

Platform of the 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 Image Builder Image. 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
val urn: Output<String>
Link copied to clipboard
val version: Output<String>

Version of the image.

Link copied to clipboard

Configuration block with the workflow configuration. Detailed below.