-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
49 lines (41 loc) · 1.49 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
variable "project_id" {
description = "The ID of the project where this VPC will be created"
}
variable "network_name" {
description = "The name of the network being created"
}
variable "routing_mode" {
type = string
default = "GLOBAL"
description = "The network routing mode (default 'GLOBAL')"
}
variable "shared_vpc_host" {
type = string
description = "Makes this project a Shared VPC host if 'true' (default 'false')"
default = "false"
}
variable "subnets" {
type = list(map(string))
description = "The list of subnets being created"
default = []
}
variable "secondary_ranges" {
type = map(list(object({ range_name = string, ip_cidr_range = string })))
description = "Secondary ranges that will be used in some of the subnets"
default = {}
}
variable "description" {
type = string
description = "An optional description of this resource. The resource must be recreated to modify this field."
default = ""
}
variable "auto_create_subnetworks" {
type = bool
description = "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 = false
}
variable "routes" {
type = list(map(string))
description = "List of routes being created in this VPC"
default = []
}