About AMI builder using native AWS CodeBuild running Packer and CodePipeline to orchestrate the entire process.
This Terraform module creates the necessary resources to run a CodeBuild project to generate new customised AMI's. We use packer for handling the build process, this allows the user to introduce their favourite change management tool such as Ansible, Puppet or simply juse Bash scripts.
We recommend using our AMI encryption lambda funtion AMI-Encryption-Lambda to encrypt the new AMI once the build process is completed by Codebuild. The lambda is wrapped inside a terraform module to make it easy to deploy and manage.
Include this repository as a module in your existing terraform code:
module "codebuild" {
source = "git::ssh://[email protected]/osodevops/aws-terraform-module-codebuild-packer.git"
codebuild_private_subnet_ids = "${data.aws_subnet_ids.private.ids}"
common_tags = "${var.common_tags}"
environment = "${var.common_tags["Environment"]}"
packer_file_location = "${var.packer_file_location}"
packer_build_subnet_ids = "${data.aws_subnet_ids.public.ids}"
project_name = "${var.project_name}"
source_repository_url = "${var.source_repository_url}"
vpc_id = "${data.aws_vpc.vpc.id}"
}
Check out these related projects.
- AMI-Encryption-Lambda - Encrypt the new AMI once the build process is completed by Codebuild
Discover our customer stories and see what OSO can deliver for your business.
- VAS Group AWS migration - Using this module we were able to re-build and migrate all VM worksloads.
File a GitHub issue, send us an email or tweet us.
Copyright © 2017-2021 OSO | See LICENCE for full details.
We at OSO help teams to adopt emerging technologies and solutions to boost their competitiveness, operational excellence and introduce meaningful innovations that drive real business growth. Our developer-first culture, combined with our cross-industry experience and battle-tested delivery methods allow us to implement the most impactful solutions for your business.
Looking for support applying emerging technologies in your business? We’d love to hear from you, get in touch by email
Start adopting new technologies by checking out our other projects, follow us on twitter, join our team of leaders and challengers, or contact us to find the right technology to support your business.