-
Notifications
You must be signed in to change notification settings - Fork 8
/
README.yaml
executable file
·47 lines (39 loc) · 2.23 KB
/
README.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
#
# This is the canonical configuration for the `README.md`
# Run `make readme` to rebuild the `README.md`
#
# Name of this project
name: "AWS CodeBuild Terraform module"
# Short description of this project
description: |-
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](https://github.com/osodevops/aws-lambda-encrypt-ami) 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.
# Canonical GitHub repo
github_repo: osodevops/aws-terraform-module-codebuild-packer
# How to use this project
usage: |-
Include this repository as a module in your existing terraform code:
```hcl
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}"
}
```
related:
- name: "AMI-Encryption-Lambda"
description: "Encrypt the new AMI once the build process is completed by Codebuild"
url: "https://github.com/osodevops/aws-lambda-encrypt-ami"
# References
references:
- name: "VAS Group AWS migration"
description: "Using this module we were able to re-build and migrate all VM worksloads."
url: "https://oso.sh/case-studies/how-we-helped-vas-group-achieve-growth-with-tableau/"