-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
executable file
·155 lines (127 loc) · 4.57 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
/**
* 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 = "Enables project random id generation. Mutually exclusive with project_id being non-empty."
default = "false"
}
variable "org_id" {
description = "The organization ID."
}
variable "domain" {
description = "The domain name (optional)."
default = ""
}
variable "name" {
description = "The name for the project"
}
variable "project_id" {
description = "If provided, the project uses the given project ID. Mutually exclusive with random_project_id being true."
default = ""
}
variable "shared_vpc" {
description = "The ID of the host project which hosts the shared VPC"
default = ""
}
variable "billing_account" {
description = "The ID of the billing account to associate this project with"
}
variable "folder_id" {
description = "The ID of a folder to host this project"
default = ""
}
variable "group_name" {
description = "A group to control the project by being assigned group_role (defaults to project editor)"
default = ""
}
variable "group_role" {
description = "The role to give the controlling group (group_name) over the project (defaults to project editor)"
default = "roles/editor"
}
variable "sa_role" {
description = "A role to give the default Service Account for the project (defaults to none)"
default = ""
}
variable "apis_authority" {
description = "Toggles authoritative management of project services."
default = "false"
}
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)"
default = ""
}
variable "usage_bucket_prefix" {
description = "Prefix in the GCS bucket to store GCE usage reports in (optional)"
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."
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."
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)"
default = ""
}
variable "bucket_name" {
description = "A name for a GCS bucket to create (in the bucket_project project), useful for Terraform state (optional)"
default = ""
}
variable "bucket_location" {
description = "The location for a GCS bucket to create (optional)"
default = "US"
}
variable "auto_create_network" {
description = "Create the default network"
default = "false"
}
variable "lien" {
description = "Add a lien on the project to prevent accidental deletion"
default = "false"
type = string
}
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`, `depriviledge`, or `keep`."
default = "delete"
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 = string
}