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
-
arnoptional computed - string -
date_createdoptional computed - string -
date_last_runoptional computed - string -
date_next_runoptional computed - string -
date_updatedoptional computed - string -
descriptionoptional - string -
distribution_configuration_arnoptional - string -
enhanced_image_metadata_enabledoptional - bool -
idoptional computed - string -
image_recipe_arnrequired - string -
infrastructure_configuration_arnrequired - string -
namerequired - string -
platformoptional computed - string -
statusoptional - string -
tagsoptional - map from string to string -
image_tests_configurationlist block-
image_tests_enabledoptional - bool -
timeout_minutesoptional - number
-
-
schedulelist block-
pipeline_execution_start_conditionoptional - string -
schedule_expressionrequired - 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
-
Namerequired - String -
Descriptionoptional - String -
ImageTestsConfigurationoptional - ImageTestsConfiguration -
Statusoptional - String -
Scheduleoptional - Schedule -
ImageRecipeArnoptional - String -
ContainerRecipeArnoptional - String -
DistributionConfigurationArnoptional - String -
InfrastructureConfigurationArnrequired - String -
EnhancedImageMetadataEnabledoptional - Boolean -
Tagsoptional - 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.