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
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
}
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
}
Parameters
-
arn
optional computed - string -
date_created
optional computed - string -
distribution_configuration_arn
optional - string -
enhanced_image_metadata_enabled
optional - bool -
id
optional computed - string -
image_recipe_arn
required - string -
infrastructure_configuration_arn
required - string -
name
optional computed - string -
os_version
optional computed - string -
output_resources
optional computed - list of object-
amis
- set of object-
account_id
- string -
description
- string -
image
- string -
name
- string -
region
- string
-
-
-
platform
optional computed - string -
tags
optional - map from string to string -
version
optional computed - string -
image_tests_configuration
list block-
image_tests_enabled
optional - bool -
timeout_minutes
optional - number
-
-
timeouts
single block-
create
optional - string
-
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
-
ImageTestsConfiguration
optional - ImageTestsConfiguration -
ImageRecipeArn
optional - String -
ContainerRecipeArn
optional - String -
DistributionConfigurationArn
optional - String -
InfrastructureConfigurationArn
required - String -
EnhancedImageMetadataEnabled
optional - Boolean -
Tags
optional - Map
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.