Creates an AWS Image Builder distribution configuration with AMI distribution settings, including tags and launch permissions, and a launch template configuration.

Terraform Template

resource "aws_imagebuilder_distribution_configuration" "example" {

  distribution {

    ami_distribution_configuration {

      ami_tags = {
        CostCenter = "IT"
      }

      launch_permission {
        user_ids = ["123456789012"]
      }
      name = "example-{{ imagebuilder:buildDate }}"
    }

    launch_template_configuration {
      launch_template_id = "lt-0aaa1bcde2ff3456"
    }
    region = "us-east-1"
  }
  name = "example"
}