This repository has been archived by the owner on Jun 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
variable.tf
168 lines (140 loc) · 4.48 KB
/
variable.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
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "repository" {
type = string
default = "https://github.com/clouddrove/terraform-azure-virtual-network"
description = "Terraform current module repo"
validation {
# regex(...) fails if it cannot find a match
condition = can(regex("^https://", var.repository))
error_message = "The module-repo value must be a valid Git repo link."
}
}
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list(any)
default = []
description = "Label order, e.g. `name`,`application`."
}
variable "attributes" {
type = list(any)
default = []
description = "Additional attributes (e.g. `1`)."
}
variable "delimiter" {
type = string
default = "-"
description = "Delimiter to be used between `organization`, `environment`, `name` and `attributes`."
}
variable "tags" {
type = map(any)
default = {}
description = "Additional tags (e.g. map(`BusinessUnit`,`XYZ`)."
}
variable "managedby" {
type = string
default = "hello@clouddrove.com"
description = "ManagedBy, eg 'CloudDrove'."
}
variable "enable" {
type = bool
default = true
description = "Flag to control the module creation"
}
variable "resource_group_name" {
type = string
default = ""
description = "The name of the resource group in which to create the virtual network. Changing this forces a new resource to be created."
}
variable "location" {
type = string
default = ""
description = "The location/region where the virtual network is created. Changing this forces a new resource to be created."
}
variable "address_space" {
type = string
default = ""
description = "The address space that is used by the virtual network."
}
variable "address_spaces" {
type = list(string)
default = []
description = "The list of the address spaces that is used by the virtual network."
}
# If no values specified, this defaults to Azure DNS
variable "dns_servers" {
type = list(string)
default = []
description = "The DNS servers to be used with vNet."
}
variable "subnet_prefixes" {
type = list(string)
default = []
description = "The address prefix to use for the subnet."
}
variable "subnet_names" {
type = list(string)
default = []
description = "A list of public subnets inside the vNet."
}
variable "subnet_enforce_private_link_endpoint_network_policies" {
type = map(bool)
default = {}
description = "A map with key (string) `subnet name`, value (bool) `true` or `false` to indicate enable or disable network policies for the private link endpoint on the subnet. Default value is false."
}
variable "subnet_service_endpoints" {
type = map(list(string))
default = {}
description = "A map with key (string) `subnet name`, value (list(string)) to indicate enabled service endpoints on the subnet. Default value is []."
}
variable "enable_ddos_pp" {
type = bool
default = false
description = "Flag to control the resource creation"
}
variable "subnet_enforce_private_link_service_network_policies" {
type = bool
default = true
description = "A map with key (string) `subnet name`, value (bool) `true` or `false` to indicate enable or disable network policies for the private link endpoint on the subnet. Default value is false."
}
variable "private_delegation" {
default = {}
}
variable "enabled_route_table" {
type = bool
default = false
description = ""
}
variable "routes" {
type = list(map(string))
default = []
description = "List of objects that represent the configuration of each route."
/*ROUTES = [{ name = "", address_prefix = "", next_hop_type = "", next_hop_in_ip_address = "" }]*/
}
variable "disable_bgp_route_propagation" {
type = bool
default = true
description = "Boolean flag which controls propagation of routes learned by BGP on that route table."
}
variable "default_name_subnet" {
type = bool
default = false
}
variable "specific_name_subnet" {
type = bool
default = false
}
variable "specific_subnet_names" {
type = string
default = ""
description = "A list of public subnets inside the vNet."
}