-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
153 lines (128 loc) · 4.44 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
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list(any)
default = []
description = "Label order, e.g. sequence of application name and environment `name`,`environment`,'attribute' [`webserver`,`qa`,`devops`,`public`,] ."
}
variable "name" {
type = string
default = ""
}
variable "network" {
type = string
default = ""
description = "(Required) The VPC network the subnets belong to. Only networks that are in the distributed mode can have subnetworks."
}
variable "project_id" {
type = string
default = ""
description = "(Optional) The ID of the project in which the resource belongs. If it is not set, the provider project is used."
}
variable "private_ip_google_access" {
type = bool
default = true
description = "(Optional) When enabled, VMs in this subnetwork without external IP addresses can access Google APIs and services by using Private Google Access."
}
variable "ip_cidr_range" {
type = string
default = "10.10.0.0/24"
description = "(Required) The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported."
}
variable "secondary_ip_ranges" {
type = any
default = []
description = "An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges."
}
variable "log_config" {
type = any
default = true
description = "(Optional) Logging options for the subnetwork flow logs. Setting this value to 'null' will disable them. See https://www.terraform.io/docs/providers/google/r/compute_subnetwork.html for more information and examples."
}
variable "google_compute_subnetwork_enabled" {
type = bool
default = true
}
variable "module_enabled" {
type = bool
default = true
}
variable "google_compute_firewall_enabled" {
type = bool
default = true
}
variable "google_compute_route_enabled" {
type = bool
default = true
}
variable "google_compute_address_enabled" {
type = bool
default = true
}
variable "google_compute_router_nat_enabled" {
type = bool
default = true
}
variable "module_timeouts" {
type = any
default = {}
description = "(Optional) How long certain operations (per resource type) are allowed to take before being considered to have failed."
}
variable "gcp_region" {
type = string
default = "europe-west3"
description = "Google Cloud region"
}
variable "allow" {
type = list(any)
default = []
description = "(Optional) The list of ALLOW rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection."
}
variable "source_ranges" {
type = any
default = []
description = "(Optional) If source ranges are specified, the firewall will apply only to traffic that has source IP address in these ranges."
}
variable "dest_range" {
type = string
default = "0.0.0.0/0"
description = "The destination range of outgoing packets that this route applies to. Only IPv4 is supported."
}
variable "next_hop_gateway" {
type = string
default = ""
description = "URL to a gateway that should handle matching packets."
}
variable "priority" {
type = number
default = 1000
description = "The priority of this route."
}
variable "asn" {
type = number
default = 64514
description = "Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit."
}
variable "nat_ip_allocate_option" {
type = string
default = "MANUAL_ONLY"
description = "How external IPs should be allocated for this NAT."
}
variable "source_subnetwork_ip_ranges_to_nat" {
type = string
default = ""
description = "How NAT should be configured per Subnetwork."
}
variable "filter" {
type = string
default = ""
description = "Specifies the desired filtering of logs on this NAT."
}
variable "ipv6_access_type" {
type = string
default = ""
description = "The access type of IPv6 address this subnet holds."
}