generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
116 lines (98 loc) · 3.25 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
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = null
description = "Name (e.g. `app` or `cluster`)."
}
variable "repository" {
type = string
default = "https://github.com/clouddrove/terraform-azure-vnet"
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 = null
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list(any)
default = ["name", "environment"]
description = "Label order, e.g. `name`,`application`."
}
variable "managedby" {
type = string
default = "[email protected]"
description = "ManagedBy, eg 'CloudDrove'."
}
variable "extra_tags" {
type = map(string)
default = null
description = "Variable to pass extra tags."
}
variable "enable" {
type = bool
default = true
description = "Flag to control the module creation"
}
variable "resource_group_name" {
type = string
default = null
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 = null
description = "The location/region where the virtual network is created. Changing this forces a new resource to be created."
}
variable "address_spaces" {
type = list(string)
default = []
description = "The list of the address spaces that is used by the virtual network."
}
variable "bgp_community" {
type = number
default = null
description = "The BGP community attribute in format <as-number>:<community-value>."
}
variable "edge_zone" {
type = string
default = null
description = " (Optional) Specifies the Edge Zone within the Azure Region where this Virtual Network should exist. Changing this forces a new Virtual Network to be created."
}
variable "flow_timeout_in_minutes" {
type = number
default = 10
description = "The flow timeout in minutes for the Virtual Network, which is used to enable connection tracking for intra-VM flows. Possible values are between 4 and 30 minutes."
}
# 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 "enable_ddos_pp" {
type = bool
default = false
description = "Flag to control the resource creation"
}
variable "existing_ddos_pp" {
type = string
default = null
description = "ID of an existing DDOPS plan defined in the same subscription"
}
variable "enable_network_watcher" {
type = bool
default = false
description = "Flag to control creation of network watcher."
}
variable "enforcement" {
type = string
default = null
description = "Specifies if the encrypted Virtual Network allows VM that does not support encryption. Possible values are DropUnencrypted and AllowUnencrypted."
}