-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathvariables.tf
116 lines (96 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
108
109
110
111
112
113
114
115
/**
* Copyright 2019 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 "image_family" {
description = "Source image family for the Bastion."
default = "centos-7"
}
variable "image_project" {
description = "Project where the source image for the Bastion comes from"
default = "gce-uefi-images"
}
variable "tags" {
type = list(string)
description = "Network tags, provided as a list"
default = []
}
variable "labels" {
description = "Key-value map of labels to assign to the bastion host"
type = "map"
default = {}
}
variable "machine_type" {
description = "Instance type for the Bastion host"
default = "n1-standard-1"
}
variable "members" {
description = "List of IAM resources to allow access to the bastion host"
type = "list"
default = []
}
variable "name" {
description = "Name of the Bastion instance"
default = "bastion-vm"
}
variable "network" {
description = "Self link for the network on which the Bastion should live"
}
variable "project" {
description = "The project ID to deploy to"
}
variable "host_project" {
description = "The network host project ID"
default = ""
}
variable "region" {
description = "The primary region where the bastion host will live"
default = "us-central1"
}
variable "scopes" {
description = "List of scopes to attach to the bastion host"
default = ["cloud-platform"]
}
variable "service_account_roles" {
description = "List of IAM roles to assign to the service account."
default = [
"roles/logging.logWriter",
"roles/monitoring.metricWriter",
"roles/monitoring.viewer",
"roles/compute.osLogin",
]
}
variable "service_account_roles_supplemental" {
description = "An additional list of roles to assign to the bastion if desired"
default = []
}
variable "shielded_vm" {
default = true
}
variable "startup_script" {
description = "Render a startup script with a template."
default = ""
}
variable "subnet" {
description = "Self link for the subnet on which the Bastion should live. Can be private when using IAP"
}
variable "zone" {
description = "The primary zone where the bastion host will live"
default = "us-central1-a"
}
variable "random_role_id" {
description = "Enables role random id generation."
type = bool
default = true
}