-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathvariables.tf
104 lines (91 loc) · 2.33 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
## Required Vars
variable "custom_tags" {
type = object({
Environment = string
TargetAccounts = string
DeploymentType = string
})
}
variable "account_type" {
description = "Human readable name of the targets accounts"
type = string
}
variable "pipeline_deployment_bucket_name" {
description = "Bucket used by codepipeline and codebuild to store artifacts regarding the deployment"
type = string
}
variable "git_repository_name" {
description = "Name of the remote source repository"
type = string
}
## Optional Variables
variable "account_id" {
description = "Account ID where resources will be deployed"
type = string
default = ""
}
variable "region" {
description = "AWS region where the resources will be deployed"
default = ""
}
variable "cb_priviledged_mode" {
description = "Enable codebuild to use docker to build images"
type = string
default = "true"
}
variable "roles" {
description = "Roles ARN used to deploy, in case of cross account deployments these roles should thrust the CIDE account"
type = list(any)
default = []
}
variable "branches" {
description = "Branches to be built"
type = list(string)
default = ["dev"]
}
variable "code_pipeline_build_stages" {
description = "maps of build type stages configured in CodePipeline"
default = {
"build" = "./build/buildspec.yaml"
}
}
variable "codebuild_node_size" {
default = "BUILD_GENERAL1_SMALL"
}
variable "proxy_config" {
description = "Proxies used by CodeBuild"
type = object({
HTTP_PROXY = string
HTTPS_PROXY = string
NO_PROXY = string
no_proxy = string
https_proxy = string
http_proxy = string
})
default = {
HTTP_PROXY = ""
HTTPS_PROXY = ""
no_proxy = ""
https_proxy = ""
http_proxy = ""
NO_PROXY = ""
}
}
variable "priv_vpc_config" {
description = "Map of values for private VPC, subnet_ids and security_group_ids are comma separated lists"
type = object({
vpc_id = string
subnet_ids = string
security_group_ids = string
})
default = {
vpc_id = ""
subnet_ids = ""
security_group_ids = ""
}
}
variable "codebuild_image" {
description = "CodeBuild image"
type = string
default = "aws/codebuild/standard:5.0"
}