-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
variables.tf
102 lines (88 loc) · 3.05 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
variable "resource_group_name" {
type = string
description = "The name of an existing resource group to be imported."
}
variable "use_for_each" {
type = bool
description = "Use `for_each` instead of `count` to create multiple resource instances."
nullable = false
}
variable "address_space" {
type = string
default = "10.0.0.0/16"
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 "resource_group_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 "subnet_delegation" {
type = map(list(object({
name = string
service_delegation = object({
name = string
actions = optional(list(string))
})
})))
default = {}
description = "`service_delegation` blocks for `azurerm_subnet` resource, subnet names as keys, list of delegation blocks as value, more details about delegation block could be found at the [document](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subnet#delegation)."
nullable = false
}
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_names" {
type = list(string)
default = ["subnet1"]
description = "A list of public subnets inside the vNet."
}
variable "subnet_prefixes" {
type = list(string)
default = ["10.0.1.0/24"]
description = "The address prefix to use for the subnet."
}
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 "tags" {
type = map(string)
default = {
environment = "dev"
}
description = "The tags to associate with your network and subnets."
}
# tflint-ignore: terraform_unused_declarations
variable "tracing_tags_enabled" {
type = bool
default = false
description = "Whether enable tracing tags that generated by BridgeCrew Yor."
nullable = false
}
# tflint-ignore: terraform_unused_declarations
variable "tracing_tags_prefix" {
type = string
default = "avm_"
description = "Default prefix for generated tracing tags"
nullable = false
}
variable "vnet_name" {
type = string
default = "acctvnet"
description = "Name of the vnet to create."
}