-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
115 lines (94 loc) · 3.18 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
# -----------------------------------------------------------------------------
# OPTIONAL VARIABLES
# -----------------------------------------------------------------------------
variable "aws_region" {
type = string
default = "us-east-1"
description = "AWS region to deploy to"
}
variable "destination_account_ids" {
type = map(string)
default = { "current" : "" }
description = <<-EOF
Account IDs of the AWS accounts to which to deploy.
EXAMPLES
**Multi-account**
```
{"operations": "<account-id>", "sandbox": "<account-id>", "production": "<account-id>"}
```
**Single-account**
```
{"current": ""}
```
If a value is an empty string (""), the deployment is executed in the current
account.
The `current` key is used to designate the case in which a deployment is only
to be made in the current account.
EOF
}
variable "cloudwatch_role_name" {
type = string
default = "cloudwatch-events-service-role"
description = "Name of the Amazon CloudWatch Events service role."
}
variable "codepipeline_role_name" {
type = string
default = "codepipeline-service-role"
description = "Name of the AWS CodePipeline service role."
}
variable "codebuild_role_name" {
type = string
default = "codebuild-service-role"
description = "Name of the AWS CodeBuild service role."
}
variable "docker_build_spec" {
type = string
default = "codebuild/docker/buildspec.yml"
description = "Location of the buildspec.yml for the 'Docker' stage."
}
variable "build_build_spec" {
type = string
default = "codebuild/build/buildspec.yml"
description = "Location of the buildspec.yml for the 'Build' stage."
}
variable "deploy_build_spec" {
type = string
default = "codebuild/deploy/buildspec.yml"
description = "Location of the buildspec.yml for the 'Deploy' stage."
}
variable "destination_codebuild_role_name" {
type = string
default = ""
description = <<-EOF
Name of the CodeBuild service role that can be assumed by a role in the
'source' account. This role must exist in an account to which you wish to
deploy. The CodeBuild service role in the source account may assume this role
to execute deployments.
For single-account deployments, this variable is not used and therefore
defaults to an empty string ("").
For multi-account deployments, this role is created when calling the 'agent'
child module.
EOF
}
# -----------------------------------------------------------------------------
# REQUIRED VARIABLES
# -----------------------------------------------------------------------------
variable "project_name" {
type = string
description = <<-EOF
Name of the project. This name will be prepended to all resources that are
associated with this module.
EOF
}
variable "cloudwatch_role_arn" {
type = string
description = "The ARN of the Amazon CloudWatch Events service role."
}
variable "codepipeline_role_arn" {
type = string
description = "The ARN of the AWS CodePipeline service role."
}
variable "codebuild_role_arn" {
type = string
description = "The ARN of the AWS CodeBuild service role."
}