forked from cloudposse/terraform-aws-codebuild
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.yaml
138 lines (118 loc) · 3.54 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
---
#
# This is the canonical configuration for the `README.md`
# Run `make readme` to rebuild the `README.md`
#
# Name of this project
name: terraform-aws-codebuild
# Tags of this project
tags:
- aws
- terraform
- terraform-modules
- cicd
- codepipeline
- codebuild
- continuous-integration
- continuous-delivery
# Categories of this project
categories:
- terraform-modules/cicd
# Logo for this project
#logo: docs/logo.png
# License of this project
license: "APACHE2"
# Canonical GitHub repo
github_repo: cloudposse/terraform-aws-codebuild
# Badges to display
badges:
- name: "Build Status"
image: "https://travis-ci.org/cloudposse/terraform-aws-codebuild.svg?branch=master"
url: "https://travis-ci.org/cloudposse/terraform-aws-codebuild"
- name: "Latest Release"
image: "https://img.shields.io/github/release/cloudposse/terraform-aws-codebuild.svg"
url: "https://github.com/cloudposse/terraform-aws-codebuild/releases"
- name: "Slack Community"
image: "https://slack.cloudposse.com/badge.svg"
url: "https://slack.cloudposse.com"
related:
- name: "terraform-aws-ecs-codepipeline"
description: "Terraform Module for CI/CD with AWS Code Pipeline and Code Build for ECS"
url: "https://github.com/cloudposse/terraform-aws-ecs-codepipeline"
# Short description of this project
description: |-
Terraform module to create AWS CodeBuild project for AWS CodePipeline.
# How to use this project
usage: |-
Include this module in your existing terraform code:
```hcl
module "label" {
source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=master"
namespace = "general"
name = "ci"
stage = "staging"
}
module "build" {
source = "git::https://github.com/cloudposse/terraform-aws-codebuild.git?ref=master"
context = "${module.label.context}"
# https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html
build_image = "aws/codebuild/docker:1.12.1"
build_compute_type = "BUILD_GENERAL1_SMALL"
build_timeout = "60"
# These attributes are optional, used as ENV variables when building
# Docker images and pushing them to ECR.
# For more info:
# http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html
# https://www.terraform.io/docs/providers/aws/r/codebuild_project.html
privileged_mode = "true"
aws_region = "us-east-1"
aws_account_id = "xxxxxxxxxx"
image_repo_name = "ecr-repo-name"
image_tag = "latest"
# Optional extra environment variables
environment_variables = [{
name = "JENKINS_URL"
value = "https://jenkins.example.com"
},
{
name = "COMPANY_NAME"
value = "Amazon"
},
{
name = "TIME_ZONE"
value = "Pacific/Auckland"
},
{
"name" = "DB_PASSWORD"
"value" = "/ssmparameter/path/to/db/password"
"type" = "PARAMETER_STORE"
},
]
}
```
### To hide warnings about unset versions in providers
Add this to your .tf files
```hcl
provider "random" {
version = "~> 1.0"
}
provider "null" {
version = "~> 1.0"
}
```
# Other files to include in this README from the project folder
include:
- "docs/targets.md"
- "docs/terraform.md"
# Contributors to this project
contributors:
- name: "Erik Osterman"
github: "osterman"
- name: "Igor Rodionov"
github: "goruha"
- name: "Andriy Knysh"
github: "aknysh"
- name: "Jamie Nelson"
github: "Jamie-BitFlight"
- name: "Sarkis Varozian"
github: "sarkis"