AWS Image Builder Image Pipeline
This page shows how to write Terraform and CloudFormation for Image Builder Image Pipeline and write them securely.
aws_imagebuilder_image_pipeline (Terraform)
The Image Pipeline in Image Builder can be configured in Terraform with the resource name aws_imagebuilder_image_pipeline
. The following sections describe 2 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_imagebuilder_image_pipeline" "example" {
image_recipe_arn = aws_imagebuilder_image_recipe.py_recipe.arn
infrastructure_configuration_arn = aws_imagebuilder_infrastructure_configuration.instance.arn
distribution_configuration_arn = aws_imagebuilder_distribution_configuration.dist_config.arn
name = "Python-pipeline"
resource "aws_imagebuilder_image_pipeline" "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
name = "examplea"
Parameters
-
arn
optional computed - string -
date_created
optional computed - string -
date_last_run
optional computed - string -
date_next_run
optional computed - string -
date_updated
optional computed - string -
description
optional - 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
required - string -
platform
optional computed - string -
status
optional - string -
tags
optional - map from string to string -
image_tests_configuration
list block-
image_tests_enabled
optional - bool -
timeout_minutes
optional - number
-
-
schedule
list block-
pipeline_execution_start_condition
optional - string -
schedule_expression
required - string
-
Explanation in Terraform Registry
Manages an Image Builder Image Pipeline.
AWS::ImageBuilder::ImagePipeline (CloudFormation)
The ImagePipeline in ImageBuilder can be configured in CloudFormation with the resource name AWS::ImageBuilder::ImagePipeline
. 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
-
Name
required - String -
Description
optional - String -
ImageTestsConfiguration
optional - ImageTestsConfiguration -
Status
optional - String -
Schedule
optional - Schedule -
ImageRecipeArn
optional - String -
ContainerRecipeArn
optional - String -
DistributionConfigurationArn
optional - String -
InfrastructureConfigurationArn
required - String -
EnhancedImageMetadataEnabled
optional - Boolean -
Tags
optional - Map
Explanation in CloudFormation Registry
An image pipeline is the automation configuration for building secure OS images on AWS. The Image Builder image pipeline is associated with an image recipe that defines the build, validation, and test phases for an image build lifecycle. An image pipeline can be associated with an infrastructure configuration that defines where your image is built. You can define attributes, such as instance type, subnets, security groups, logging, and other infrastructure-related configurations. You can also associate your image pipeline with a distribution configuration to define how you would like to deploy your image.
Frequently asked questions
What is AWS Image Builder Image Pipeline?
AWS Image Builder Image Pipeline 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 Pipeline?
For Terraform, the KonovalovAlexey/terraform-modules and JamesWoolfenden/terraform-aws-imagebuilder source code examples are useful. See the Terraform Example section for further details.