AWS Image Builder Image

This page shows how to write Terraform and CloudFormation for Image Builder Image and write them securely.

aws_imagebuilder_image (Terraform)

The Image in Image Builder can be configured in Terraform with the resource name aws_imagebuilder_image. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub

pipeline.tf#L1
resource "aws_imagebuilder_image" "example" {
  distribution_configuration_arn   = aws_imagebuilder_distribution_configuration.dist_config.arn
  image_recipe_arn                 = aws_imagebuilder_image_recipe.py_recipe.arn
  infrastructure_configuration_arn = aws_imagebuilder_infrastructure_configuration.instance.arn
}

aws_imagebuilder_image.examplea.tf#L1
resource "aws_imagebuilder_image" "examplea" {
  distribution_configuration_arn   = aws_imagebuilder_distribution_configuration.examplea.arn
  image_recipe_arn                 = aws_imagebuilder_image_recipe.examplea.arn
  infrastructure_configuration_arn = aws_imagebuilder_infrastructure_configuration.examplea.arn
  tags                             = var.common_tags
}

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages an Image Builder Image.

AWS::ImageBuilder::Image (CloudFormation)

The Image in ImageBuilder can be configured in CloudFormation with the resource name AWS::ImageBuilder::Image. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

Explanation in CloudFormation Registry

An image build version. An image is a customized, secure, and up-to-date “golden” server image that is pre-installed and pre-configured with software and settings to meet specific IT standards.

Frequently asked questions

What is AWS Image Builder Image?

AWS Image Builder Image is a resource for Image Builder of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Image Builder Image?

For Terraform, the KonovalovAlexey/terraform-modules and JamesWoolfenden/terraform-aws-imagebuilder source code examples are useful. See the Terraform Example section for further details.