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
resource "aws_imagebuilder_distribution_configuration" "test" {
name = "examplea"
distribution {
ami_distribution_configuration {
kms_key_id = aws_kms_key.test.arn
resource "aws_imagebuilder_distribution_configuration" "dist_config" {
name = "Python-dist-config"
distribution {
ami_distribution_configuration {
ami_tags = {
resource "aws_imagebuilder_distribution_configuration" "this" {
name = "local-distribution"
distribution {
ami_distribution_configuration {
resource "aws_imagebuilder_distribution_configuration" "example" {
name = "example"
distribution {
ami_distribution_configuration {
ami_tags = {
CostCenter = "IT"
resource "aws_imagebuilder_distribution_configuration" "examplea" {
name = var.dist_name
distribution {
ami_distribution_configuration {
ami_tags = {
Parameters
-
arnoptional computed - string -
date_createdoptional computed - string -
date_updatedoptional computed - string -
descriptionoptional - string -
idoptional computed - string -
namerequired - string -
tagsoptional - map from string to string -
distributionset block-
license_configuration_arnsoptional - set of string -
regionrequired - string -
ami_distribution_configurationlist block-
ami_tagsoptional - map from string to string -
descriptionoptional - string -
kms_key_idoptional - string -
nameoptional - string -
target_account_idsoptional - set of string -
launch_permissionlist block-
user_groupsoptional - set of string -
user_idsoptional - set of string
-
-
-
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
-
Namerequired - String -
Descriptionoptional - String -
Distributionsrequired - List of Distribution -
Tagsoptional - Map
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.