image-builder-pipeline
dod-iac/image-builder-pipeline/aws
Creates a pipeline for EC2 Image Builder.
Usage Creates a pipeline for EC2 Image Builder. ``hcl module "image_builder_infrastructure_configuration" { source = "dod-iac/image-builder-infrastructure-configuration/aws" version = "1.0.0" iam_instance_profile_name = aws_iam_instance_profile.image_builder_instance_role.name logging_bucket = var.logging_bucket name = format("app-%s-%s", var.application, var.environment) subnet_id = coalesce(var.subnet_ids...) vpc_id = var.vpc_id } module "image_builder_pipeline" { source = "dod-iac/image-builder-pipeline/aws" ami_name = format(app-%s-%s-{{ imagebuilder:buildDate }}", var.application, var.environment) ami_regions = [data.aws_region.current.name] ami_tags = { "Automation" : "Terraform", "Project" : var.project, "Application" : var.application, "Environment" : var.environment, } base_image
| Name | Type | Description | Default |
|---|---|---|---|
| components | list(object({ arn = string | The ordered components of the recipe. | required |
| name | string | The name of the pipeline. | required |
| base_image | string | The ARN of the base image of the recipe. | required |
| infrastructure_configuration | string | The ARN of the infrastructure configuration to use with this pipeline. | required |
| ami_regions | list(string) | A list of regions where the AMI will be distributed. Defaults to current region | [] |
| ami_tags | map(string) | The tags for the distributed AMI. | {} |
| recipe_version | string | The version of the EC2 Image Builder recipe. | "1.0.0" |
| schedule_expression | string | Cron expression of how often the pipeline is executed. | "" |
| tags | map(string) | The tags applied to the recipe and pipeline. | {} |
| ami_description | string | The description applied to the distributed AMI. | "An Amazon Machine Image (AMI) built wit |
| description | string | The description of the pipeline. | "A pipeline for EC2 Image Builder." |
| recipe_name | string | The name of the recipe. Defaults to the name of the pipeline. | "" |
| enabled | bool | Is the pipeline enabled. | true |
| ami_name | string | The name of the distributed AMI. Defaults to the name of the pipeline appended | "" |
| check_dependencies | bool | Only run pipeline at the scheduled time if components were updated. | false |
arn — The ARN of the EC2 Image Builder pipeline.Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,