image-builder-pipeline

dod-iac/image-builder-pipeline/aws

Terraform Module HCL AWS

Creates a pipeline for EC2 Image Builder.

Install
module "image-builder-pipeline" {
source = "dod-iac/image-builder-pipeline/aws"
version = "1.0.1"
}
plain text: /constructs/tfmod-dod-iac-image-builder-pipeline-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (15)
NameTypeDescriptionDefault
componentslist(object({ arn = stringThe ordered components of the recipe. required
namestringThe name of the pipeline. required
base_imagestringThe ARN of the base image of the recipe. required
infrastructure_configurationstringThe ARN of the infrastructure configuration to use with this pipeline. required
ami_regionslist(string)A list of regions where the AMI will be distributed. Defaults to current region[]
ami_tagsmap(string)The tags for the distributed AMI.{}
recipe_versionstringThe version of the EC2 Image Builder recipe."1.0.0"
schedule_expressionstringCron expression of how often the pipeline is executed.""
tagsmap(string)The tags applied to the recipe and pipeline.{}
ami_descriptionstringThe description applied to the distributed AMI."An Amazon Machine Image (AMI) built wit
descriptionstringThe description of the pipeline."A pipeline for EC2 Image Builder."
recipe_namestringThe name of the recipe. Defaults to the name of the pipeline.""
enabledboolIs the pipeline enabled.true
ami_namestringThe name of the distributed AMI. Defaults to the name of the pipeline appended ""
check_dependenciesboolOnly run pipeline at the scheduled time if components were updated.false
Outputs (1)
arn — The ARN of the EC2 Image Builder pipeline.
Resources (3)
aws_imagebuilder_distribution_configurationaws_imagebuilder_image_pipelineaws_imagebuilder_image_recipe
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.1
Cloud AWS
★ Stars1
Forks0
Total downloads3.9k
Inputs15
Outputs1
Resources3
LicenseMIT
Namespacedod-iac
Updated