Resource: aws_imagebuilder_image

Manages an Image Builder Image.

Example Usage

resource "aws_imagebuilder_image" "example" {
  distribution_configuration_arn   = aws_imagebuilder_distribution_configuration.example.arn
  image_recipe_arn                 = aws_imagebuilder_image_recipe.example.arn
  infrastructure_configuration_arn = aws_imagebuilder_infrastructure_configuration.example.arn
}

Argument Reference

The following arguments are required:

The following arguments are optional:

image_tests_configuration

The following arguments are optional:

image_scanning_configuration

The following arguments are optional:

ecr_configuration

The following arguments are optional:

workflow

The following arguments are required:

The following arguments are optional:

parameter

The following arguments are required:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import aws_imagebuilder_image resources using the Amazon Resource Name (ARN). For example:

import {
  to = aws_imagebuilder_image.example
  id = "arn:aws:imagebuilder:us-east-1:123456789012:image/example/1.0.0/1"
}

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

% terraform import aws_imagebuilder_image.example arn:aws:imagebuilder:us-east-1:123456789012:image/example/1.0.0/1