-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathvariables.tf
132 lines (111 loc) · 3.39 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
variable "event" {
type = string
description = "Type of event that will trigger the flow-ci job"
validation {
condition = contains(
[
"branch",
"on-demand",
"review",
"schedule",
"tag",
],
var.event
)
error_message = "The event must be one of: branch, on-demand, review, schedule, or tag."
}
}
variable "repo_name" {
type = string
description = "Name of the CodeCommit repository"
}
variable "name_prefix" {
type = string
description = "Prefix to attach to repo name"
default = ""
nullable = false
}
variable "artifacts" {
type = map(string)
description = "Map defining an artifacts object for the CodeBuild job"
default = {}
}
variable "badge_enabled" {
type = bool
description = "Generates a publicly-accessible URL for the projects build badge"
default = null
}
variable "branch" {
type = string
description = "Name of the branch where updates will trigger a build. Used only when `event` is \"branch\""
default = null
}
variable "build_timeout" {
type = number
description = "How long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any related build that does not get marked as completed"
default = null
}
variable "buildspec" {
type = string
description = "Buildspec used when the specified branch is updated"
default = ""
}
variable "encryption_key" {
type = string
description = "The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build project's build output artifacts"
default = null
}
variable "environment" {
type = map(string)
description = "Map describing the environment object for the CodeBuild job"
default = {}
}
variable "environment_variables" {
type = list(map(string))
description = "List of environment variable map objects for the CodeBuild job"
default = []
}
variable "policy_arns" {
type = list(string)
description = "List of IAM policy ARNs to attach to the CodeBuild service role"
default = []
}
variable "policy_override" {
type = string
description = "IAM policy document in JSON that extends the basic inline CodeBuild service role"
default = ""
}
variable "python_runtime" {
type = string
description = "Python runtime for the handler Lambda function"
default = null
}
variable "queued_timeout" {
type = number
description = "How long in minutes, from 5 to 480 (8 hours), a build is allowed to be queued before it times out"
default = null
}
variable "schedule_expression" {
type = string
description = "CloudWatch Event schedule that triggers the CodeBuild job. Required when `event` is \"schedule\""
default = null
}
variable "source_version" {
type = string
description = "A version of the build input to be built for this project. If not specified, the latest version is used"
default = null
}
variable "tags" {
type = map(string)
description = "A map of tags to assign to the resource"
default = {}
}
variable "vpc_config" {
description = "Object of inputs for the VPC configuration of the CodeBuild job"
type = object({
security_group_ids = list(string)
subnets = list(string)
vpc_id = string
})
default = null
}