forked from plus3it/terraform-aws-codecommit-flow-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
107 lines (90 loc) · 2.83 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
variable "event" {
type = string
description = "Type of event that will trigger the flow-ci job"
validation {
condition = contains(
[
"branch",
"review",
"schedule",
"tag",
],
var.event
)
error_message = "The event must be one of: branch, review, schedule, or tag."
}
}
variable "repo_name" {
type = string
description = "Name of the CodeCommit repository"
}
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 = "master"
}
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 "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 = {}
}