-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
157 lines (120 loc) · 5.9 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
#-------------------------------------------------------------------------------------
# Module_labels_variable #
#-------------------------------------------------------------------------------------
variable "environment" {
type = string
default = "dev"
description = "Environment name"
}
variable "label_order" {
type = list(any)
default = ["name", "environment"]
description = "Label order, e.g. `name`,`application`."
}
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 "name" {
type = string
default = ""
description = "(Optional) The name of the VPC. The name will be used to prefix all associacted resources also. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression \"[a-z]([-a-z0-9]*[a-z0-9])?\" which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. Default is \"main\"."
}
#---------------------------------------------------------------------------------------------------
# Google_Compute_Network_(VPC)_variable #
#---------------------------------------------------------------------------------------------------
variable "google_compute_network_enabled" {
type = bool
default = true
description = "Specifies whether the Google Compute Engine network should be enabled"
}
variable "description" {
type = string
default = ""
description = "(Optional) An optional description of the VPC. The resource must be recreated to modify this field.Default is ''."
}
variable "routing_mode" {
type = string
default = "REGIONAL"
description = "(Optional) The network-wide routing mode to use. If set to 'REGIONAL', this network's cloud routers will only advertise routes with subnetworks of this network in the same region as the router. If set to 'GLOBAL', this network's cloud routers will advertise routes with all subnetworks of this network, across regions. Possible values are 'REGIONAL' and 'GLOBAL'. Default is 'REGIONAL'."
}
variable "delete_default_routes_on_create" {
type = bool
default = false
description = "(Optional) If set to true, ensure that all routes within the network specified whose names begin with 'default-route' and with a next hop of 'default-internet-gateway' are deleted."
}
variable "auto_create_subnetworks" {
type = bool
default = false
description = "(Optional) When set to true, the network is created in 'auto subnet mode' and it will create a subnet for each region automatically across the '10.128.0.0/9' address range. When set to 'false', the network is created in 'custom subnet mode' so the user can explicitly connect subnetwork resources. Default is 'false'."
}
variable "mtu" {
type = string
default = 1460
description = "(Optional) Maximum Transmission Unit in bytes. The minimum value for this field is 1460 and the maximum value is 1500 bytes. Default is '1460'."
}
variable "enable_ula_internal_ipv6" {
type = bool
default = false
description = "(Optional) Enable ULA internal ipv6 on this network. Enabling this feature will assign a /48 from google defined ULA prefix fd20::/20."
}
variable "internal_ipv6_range" {
type = string
default = null
description = "(Optional) When enabling ula internal ipv6, caller optionally can specify the /48 range they want from the google defined ULA prefix fd20::/20. The input must be a valid /48 ULA IPv6 address and must be within the fd20::/20. Operation will fail if the speficied /48 is already in used by another resource. If the field is not speficied, then a /48 range will be randomly allocated from fd20::/20 and returned via this field."
}
variable "module_enabled" {
type = bool
default = true
description = "(Optional) Whether to create resources within the module or not. Default is 'true'."
}
variable "module_depends_on" {
type = any
default = []
description = "(Optional) A list of external resources the module depends_on. Default is '[]'."
}
#---------------------------------------------------------------------------------------------------------
# shared_vpc_variable #
#----------------------------------------------------------------------------------------------------------
variable "host_project_id" {
description = "Google Cloud Project ID"
type = string
default = ""
}
variable "service_project_id" {
description = "Project ID of the service project"
type = string
default = ""
}
variable "enabled" {
type = bool
default = true
description = "Set to false to prevent the module from creating any resources."
}
variable "google_compute_shared_vpc_host_enabled" {
type = bool
default = true
description = "Set to false to disable the creation of Google Compute Engine shared VPC host project."
}
#---------------------------------------------------------------------------------------------------------
# private_IP_&_service_networking_variable #
#----------------------------------------------------------------------------------------------------------
variable "enable_private_ip_alloc" {
type = bool
default = true
description = "Enable allocation of a private IP address range for VPC peering."
}
variable "private_ip_alloc_name" {
description = "List of names for the private IP allocations"
type = list(string)
}
variable "prefix_length" {
description = "List of prefix lengths for the private IP allocations"
type = list(number)
}
variable "enable_service_networking" {
description = "Whether to enable service networking"
type = bool
default = true
}