AWS Image Builder Distribution Configuration

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

aws_imagebuilder_distribution_configuration (Terraform)

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

Example Usage from GitHub

aws_imagebuilder_distribution_configuration.tf#L1
resource "aws_imagebuilder_distribution_configuration" "test" {
  name = "examplea"

  distribution {
    ami_distribution_configuration {
      kms_key_id = aws_kms_key.test.arn
dist_config.tf#L1
resource "aws_imagebuilder_distribution_configuration" "dist_config" {
  name = "Python-dist-config"

  distribution {
    ami_distribution_configuration {
      ami_tags = {
3-dist-config.tf#L1
resource "aws_imagebuilder_distribution_configuration" "this" {
  name = "local-distribution"

  distribution {
    ami_distribution_configuration {

image-build.tf#L26
resource "aws_imagebuilder_distribution_configuration" "example" {
  name = "example"
  distribution {
    ami_distribution_configuration {
      ami_tags = {
        CostCenter = "IT"
aws_imagebuilder_distribution_configuration.examplea.tf#L1
resource "aws_imagebuilder_distribution_configuration" "examplea" {
  name = var.dist_name

  distribution {
    ami_distribution_configuration {
      ami_tags = {

Parameters

Explanation in Terraform Registry

Manages an Image Builder Distribution Configuration.

AWS::ImageBuilder::DistributionConfiguration (CloudFormation)

The DistributionConfiguration in ImageBuilder can be configured in CloudFormation with the resource name AWS::ImageBuilder::DistributionConfiguration. 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

A distribution configuration allows you to specify the name and description of your output AMI, authorize other AWS accounts to launch the AMI, and replicate the AMI to other AWS Regions. It also allows you to export the AMI to Amazon S3.

Frequently asked questions

What is AWS Image Builder Distribution Configuration?

AWS Image Builder Distribution Configuration 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 Distribution Configuration?

For Terraform, the JamesWoolfenden/check-encrypt, KonovalovAlexey/terraform-modules and masterwali/ec2-image-builder source code examples are useful. See the Terraform Example section for further details.