forked from cloudposse/terraform-aws-cicd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
260 lines (211 loc) · 7.01 KB
/
variables.tf
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
variable "namespace" {
default = "global"
description = "Namespace, which could be your organization name, e.g. 'cp' or 'cloudposse'"
}
variable "stage" {
default = "default"
description = "Stage, e.g. 'prod', 'staging', 'dev', or 'test'"
}
variable "name" {
default = "app"
description = "Solution name, e.g. 'app' or 'jenkins'"
}
variable "enabled" {
default = "true"
description = "Enable ``CodePipeline`` creation"
}
variable "ebs_app" {
type = "string"
default = ""
description = "Elastic Beanstalk application name. If not provided or set to empty string, the ``Deploy`` stage of the pipeline will not be created"
}
variable "ebs_env" {
type = "string"
default = ""
description = "Elastic Beanstalk environment name. If not provided or set to empty string, the ``Deploy`` stage of the pipeline will not be created"
}
variable "ecs_cluster" {
type = "string"
default = ""
description = "ECS cluster name. If not provided or set to empty string, the Deploy stage of pipeline will not be created. You can specify only ebs_ or ecs_ values, not both."
}
variable "ecs_service" {
type = "string"
default = ""
description = "ECS service name. If not provided or set to empty string, the Deploy stage of pipeline will not be created. You can specify only ebs_ or ecs_ values, not both."
}
variable "ecs_images_file" {
type = "string"
default = "images.json"
description = "File to be generated by CodeBuild with names of images for Deploy stage of pipeline to deploy."
}
variable "github_oauth_token" {
description = "GitHub Oauth Token with permissions to access private repositories"
}
variable "repo_owner" {
description = "GitHub Organization or Person name"
}
variable "repo_name" {
description = "GitHub repository name of the application to be built (and deployed to Elastic Beanstalk if configured)"
}
variable "branch" {
description = "Branch of the GitHub repository, _e.g._ ``master``"
}
variable "build_image" {
default = "aws/codebuild/docker:1.12.1"
description = "Docker image for build environment, _e.g._ `aws/codebuild/docker:1.12.1` or `aws/codebuild/eb-nodejs-6.10.0-amazonlinux-64:4.0.0`"
}
variable "build_compute_type" {
default = "BUILD_GENERAL1_SMALL"
description = "`CodeBuild` instance size. Possible values are: ```BUILD_GENERAL1_SMALL``` ```BUILD_GENERAL1_MEDIUM``` ```BUILD_GENERAL1_LARGE```"
}
variable "build_cache_enable" {
default = "false"
description = "Enable creation of cache bucket for CodeBuild"
}
variable "buildspec" {
default = ""
description = " Declaration to use for building the project. [For more info](http://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html)"
}
# https://www.terraform.io/docs/configuration/variables.html
# It is recommended you avoid using boolean values and use explicit strings
variable "poll_source_changes" {
type = "string"
default = "true"
description = "Periodically check the location of your source content and run the pipeline if changes are detected"
}
variable "delimiter" {
type = "string"
default = "-"
description = "Delimiter to be used between `name`, `namespace`, `stage`, etc."
}
variable "attributes" {
type = "list"
default = []
description = "Additional attributes (e.g. `policy` or `role`)"
}
variable "tags" {
type = "map"
default = {}
description = "Additional tags (e.g. `map('BusinessUnit', 'XYZ')`"
}
variable "privileged_mode" {
default = "false"
description = "If set to true, enables running the Docker daemon inside a Docker container on the CodeBuild instance. Used when building Docker images"
}
variable "aws_region" {
type = "string"
default = ""
description = "AWS Region, e.g. us-east-1. Used as CodeBuild ENV variable when building Docker images. [For more info](http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html)"
}
variable "aws_account_id" {
type = "string"
default = ""
description = "AWS Account ID. Used as CodeBuild ENV variable when building Docker images. [For more info](http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html)"
}
variable "image_repo_name" {
type = "string"
default = "UNSET"
description = "ECR repository name to store the Docker image built by this module. Used as CodeBuild ENV variable when building Docker images. [For more info](http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html)"
}
variable "image_tag" {
type = "string"
default = "latest"
description = "Docker image tag in the ECR repository, e.g. 'latest'. Used as CodeBuild ENV variable when building Docker images. [For more info](http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html)"
}
variable "codebuild_var1" {
type = "string"
default = "var1"
}
variable "codebuild_var1_val" {
type = "string"
default = "value1"
}
variable "codebuild_var2" {
type = "string"
default = "var2"
}
variable "codebuild_var2_val" {
type = "string"
default = "value2"
}
variable "codebuild_var3" {
type = "string"
default = "var3"
}
variable "codebuild_var3_val" {
type = "string"
default = "value3"
}
variable "codebuild_var4" {
type = "string"
default = "var4"
}
variable "codebuild_var4_val" {
type = "string"
default = "value4"
}
variable "codebuild_var5" {
type = "string"
default = "var5"
}
variable "codebuild_var5_val" {
type = "string"
default = "value5"
}
variable "codebuild_var6" {
type = "string"
default = "var6"
}
variable "codebuild_var6_val" {
type = "string"
default = "value6"
}
variable "codebuild_var7" {
type = "string"
default = "var7"
}
variable "codebuild_var7_val" {
type = "string"
default = "value7"
}
variable "codebuild_var8" {
type = "string"
default = "var8"
}
variable "codebuild_var8_val" {
type = "string"
default = "value8"
}
variable "codebuild_var9" {
type = "string"
default = "var9"
}
variable "codebuild_var9_val" {
type = "string"
default = "value9"
}
# FIXME: Currently approval only implemented to Source + Build variant of pipeline.
variable "approve" {
type = "string"
default = "false"
description = "Name of approve step, if needed. Added before Build step"
}
variable "approve_url" {
type = "string"
default = ""
description = "URL to review, if approval is enabled"
}
variable "approve_comment" {
type = "string"
default = ""
description = "Comment to show, if approval is enabled"
}
variable "codebuild_environment_variables" {
type = "list"
default = [{
"name" = "NO_ADDITIONAL_BUILD_VARS"
"value" = "TRUE"
}]
description = "A list of maps, that contain both the key 'name' and the key 'value' to be used as additional environment variables for the build."
}