forked from GoogleCloudPlatform/terraform-google-nat-gateway
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
213 lines (171 loc) · 4.7 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
211
212
213
/*
* Copyright 2017 Google Inc.
*
* 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 module_enabled {
description = "To disable this module, set this to false"
default = true
}
variable project {
description = "The project to deploy to, if not set the default provider project is used."
default = ""
}
variable network {
description = "The network to deploy to"
default = "default"
}
variable network_project {
description = "Name of the project for the network. Useful for shared VPC. Default is var.project."
default = ""
}
variable subnetwork {
description = "The subnetwork to deploy to"
default = "default"
}
variable region {
description = "The region to create the nat gateway instance in."
}
variable zone {
description = "Override the zone used in the `region_params` map for the region."
default = ""
}
variable name {
description = "Prefix added to the resource names, for example 'prod-'. By default, resources will be named in the form of '<name>nat-gateway-<zone>'"
default = ""
}
variable ip_address_name {
description = "Name of an existing reserved external address to use."
default = ""
}
variable tags {
description = "Additional compute instance network tags to apply route to."
type = "list"
default = []
}
variable route_priority {
description = "The priority for the Compute Engine Route"
default = 800
}
variable machine_type {
description = "The machine type for the NAT gateway instance"
default = "n1-standard-1"
}
variable compute_image {
description = "Image used for NAT compute VMs."
default = "projects/debian-cloud/global/images/family/debian-9"
}
variable ip {
description = "Override the internal IP. If not provided, an internal IP will automatically be assigned."
default = ""
}
variable squid_enabled {
description = "Enable squid3 proxy on port 3128."
default = "false"
}
variable squid_config {
description = "The squid config file to use. If not specifed the module file config/squid.conf will be used."
default = ""
}
variable metadata {
description = "Metadata to be attached to the NAT gateway instance"
type = "map"
default = {}
}
variable "ssh_fw_rule" {
description = "Whether or not the SSH Firewall Rule should be created"
default = true
}
variable ssh_source_ranges {
description = "Network ranges to allow SSH from"
type = "list"
default = ["0.0.0.0/0"]
}
variable instance_labels {
description = "Labels added to instances."
type = "map"
default = {}
}
variable service_account_email {
description = "The email of the service account for the instance template."
default = "default"
}
variable autohealing_enabled {
description = "Enable instance autohealing using http health check"
default = false
}
variable region_params {
description = "Map of default zones and IPs for each region. Can be overridden using the `zone` and `ip` variables."
type = "map"
default = {
asia-east1 = {
zone = "asia-east1-b"
}
asia-east2 = {
zone = "asia-east2-b"
}
asia-northeast1 = {
zone = "asia-northeast1-b"
}
asia-south1 = {
zone = "asia-south1-b"
}
asia-southeast1 = {
zone = "asia-southeast1-b"
}
australia-southeast1 = {
zone = "australia-southeast1-b"
}
europe-north1 = {
zone = "europe-north1-b"
}
europe-west1 = {
zone = "europe-west1-b"
}
europe-west2 = {
zone = "europe-west2-b"
}
europe-west3 = {
zone = "europe-west3-b"
}
europe-west4 = {
zone = "europe-west4-b"
}
northamerica-northeast1 = {
zone = "northamerica-northeast1-b"
}
southamerica-east1 = {
zone = "southamerica-east1-b"
}
us-central1 = {
zone = "us-central1-f"
}
us-east1 = {
zone = "us-east1-b"
}
us-east4 = {
zone = "us-east4-b"
}
us-west1 = {
zone = "us-west1-b"
}
us-west2 = {
zone = "us-west2-b"
}
}
}
variable "dest_range" {
description = "The destination IPv4 netowrks that will be routed to this gateway"
type = "list"
default = ["0.0.0.0/0"]
}