-
Notifications
You must be signed in to change notification settings - Fork 533
/
variables.tf
210 lines (177 loc) · 6.06 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
/**
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
variable "random_project_id" {
description = "Adds a suffix of 4 random characters to the `project_id`"
type = bool
default = false
}
variable "org_id" {
description = "The organization ID."
type = string
}
variable "domain" {
description = "The domain name (optional)."
type = string
default = ""
}
variable "name" {
description = "The name for the project"
type = string
}
variable "project_id" {
description = "The ID to give the project. If not provided, the `name` will be used."
type = string
default = ""
}
variable "shared_vpc" {
description = "The ID of the host project which hosts the shared VPC"
type = string
default = ""
}
variable "billing_account" {
description = "The ID of the billing account to associate this project with"
type = string
}
variable "folder_id" {
description = "The ID of a folder to host this project"
type = string
default = ""
}
variable "group_name" {
description = "A group to control the project by being assigned group_role (defaults to project editor)"
type = string
default = ""
}
variable "group_role" {
description = "The role to give the controlling group (group_name) over the project (defaults to project editor)"
type = string
default = "roles/editor"
}
variable "sa_role" {
description = "A role to give the default Service Account for the project (defaults to none)"
type = string
default = ""
}
variable "activate_apis" {
description = "The list of apis to activate within the project"
type = list(string)
default = ["compute.googleapis.com"]
}
variable "usage_bucket_name" {
description = "Name of a GCS bucket to store GCE usage reports in (optional)"
type = string
default = ""
}
variable "usage_bucket_prefix" {
description = "Prefix in the GCS bucket to store GCE usage reports in (optional)"
type = string
default = ""
}
variable "credentials_path" {
description = "Path to a service account credentials file with rights to run the Project Factory. If this file is absent Terraform will fall back to Application Default Credentials."
type = string
default = ""
}
variable "impersonate_service_account" {
description = "An optional service account to impersonate. This cannot be used with credentials_path. If this service account is not specified and credentials_path is absent, the module will use Application Default Credentials."
type = string
default = ""
}
variable "shared_vpc_subnets" {
description = "List of subnets fully qualified subnet IDs (ie. projects/$project_id/regions/$region/subnetworks/$subnet_id)"
type = list(string)
default = []
}
variable "labels" {
description = "Map of labels for project"
type = map(string)
default = {}
}
variable "bucket_project" {
description = "A project to create a GCS bucket (bucket_name) in, useful for Terraform state (optional)"
type = string
default = ""
}
variable "bucket_name" {
description = "A name for a GCS bucket to create (in the bucket_project project), useful for Terraform state (optional)"
type = string
default = ""
}
variable "bucket_location" {
description = "The location for a GCS bucket to create (optional)"
type = string
default = "US"
}
variable "auto_create_network" {
description = "Create the default network"
type = bool
default = false
}
variable "lien" {
description = "Add a lien on the project to prevent accidental deletion"
type = bool
default = false
}
variable "disable_services_on_destroy" {
description = "Whether project services will be disabled when the resources are destroyed"
default = "true"
type = string
}
variable "default_service_account" {
description = "Project default service account setting: can be one of `delete`, `deprivilege`, `disable`, or `keep`."
default = "disable"
type = string
}
variable "disable_dependent_services" {
description = "Whether services that are enabled and which depend on this service should also be disabled when this service is destroyed."
default = true
type = bool
}
variable "python_interpreter_path" {
description = "Python interpreter path for precondition check script."
type = string
default = "python3"
}
variable "pip_executable_path" {
description = "Pip executable path for precondition requirements.txt install."
type = string
default = "pip3"
}
variable "use_tf_google_credentials_env_var" {
description = "Use GOOGLE_CREDENTIALS environment variable to run gcloud auth activate-service-account with."
type = bool
default = false
}
variable "budget_amount" {
description = "The amount to use for a budget alert"
type = number
default = null
}
variable "budget_alert_pubsub_topic" {
description = "The name of the Cloud Pub/Sub topic where budget related messages will be published, in the form of `projects/{project_id}/topics/{topic_id}`"
type = string
default = null
}
variable "budget_alert_spent_percents" {
description = "A list of percentages of the budget to alert on when threshold is exceeded"
type = list(number)
default = [0.5, 0.7, 1.0]
}
variable "skip_gcloud_download" {
description = "Whether to skip downloading gcloud (assumes gcloud is already available outside the module)"
type = bool
default = false
}