-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
113 lines (100 loc) · 2.59 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
variable "resource_group_name" {
description = "Resource group name"
type = string
}
variable "location" {
description = "Azure Region"
type = string
default = "norwayeast"
}
variable "vnet_location" {
description = "vNet Region"
type = string
default = "norwayeast"
}
variable "service_prefix" {
type = string
description = "prefix for all reources"
}
variable "custom_vnet_map" {
description = "vnets to be created"
type = map(object({
vnet_address_space = list(string)
subnet_names = list(string)
subnet_prefixes = list(string)
}))
# default = {
# "dmz" = {
# vnet_address_space = ["10.1.0.0/16"] # VCN CIDR range
# subnet_names = ["gateway"] # Names of subnets
# subnet_prefixes = ["10.1.1.0/24"] # Subnet CIDR Ranges for the subnets in subnet_names
# }
# "ase" = {
# vnet_address_space = ["10.2.0.0/16"] # VCN CIDR range
# subnet_names = ["backend"] # Names of subnets
# subnet_prefixes = ["10.2.1.0/24"] # Subnet CIDR Ranges for the subnets in subnet_names
# }
# }
}
variable "subnet_delegation" {
type = map(map(any))
default = {}
description = "A map of subnet name to delegation block on the subnet"
}
variable "tags" {
type = map(string)
default = {
ENV = "test"
}
description = "The tags to associate with your network and subnets."
}
variable "ase_subnet" {
type = string
description = "ase_subnet"
# default = "ase_subnet"
nullable = false
}
variable "ase_vnet" {
type = string
description = "ase_subnet"
# default = "ase"
nullable = false
}
variable "enable_peering" {
type = bool
description = "enable_peering"
nullable = false
}
variable "remote_virtual_network_name" {
type = string
description = "remote_virtual_network_name"
nullable = true
}
variable "peering_name" {
type = string
description = "peering_name"
nullable = true
}
variable "virtual_network_name" {
type = string
description = "virtual_network_name"
nullable = true
}
# variable "custom_vnet_peering_map" {
# description = "vnets to be created"
# type = map(object({
# virtual_network_name = string
# remote_virtual_network_name = string
# }))
# # default = {
# # {
# # "ase_peering" = {
# # virtual_network_name = "ase"
# # remote_virtual_network_name = "dmz"
# # }
# # "dmz_peering" = {
# # virtual_network_name = "dmz"
# # remote_virtual_network_name = "ase"
# # }
# # }
# }