-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
variables.tf
176 lines (156 loc) · 5.77 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
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
169
170
171
172
173
174
175
176
variable "create_resource_group" {
description = "Whether to create resource group and use it for all networking resources"
default = false
}
variable "resource_group_name" {
description = "A container that holds related resources for an Azure solution"
default = ""
}
variable "location" {
description = "The location/region to keep all your network resources. To get the list of all locations with table format from azure cli, run 'az account list-locations -o table'"
default = ""
}
variable "virtual_network_name" {
description = "Name of your Azure Virtual Network"
default = ""
}
variable "firewall_subnet_address_prefix" {
description = "The address prefix to use for the Firewall subnet.The Subnet used for the Firewall must have the name AzureFirewallSubnet and the subnet mask must be at least a /26."
default = []
}
variable "firewall_management_subnet_address_prefix" {
description = "The address prefix to use for Firewall managemement subnet to enable forced tunnelling. The Management Subnet used for the Firewall must have the name `AzureFirewallManagementSubnet` and the subnet mask must be at least a `/26`."
default = null
}
variable "public_ip_prefix_length" {
description = "Specifies the number of bits of the prefix. The value can be set between 0 (4,294,967,296 addresses) and 31 (2 addresses)."
default = 31
}
variable "public_ip_names" {
description = "Public ips is a list of ip names that are connected to the firewall. At least one is required."
type = list(string)
default = ["fw-public"]
}
variable "firewall_service_endpoints" {
description = "Service endpoints to add to the firewall subnet"
type = list(string)
default = [
"Microsoft.AzureActiveDirectory",
"Microsoft.AzureCosmosDB",
"Microsoft.EventHub",
"Microsoft.KeyVault",
"Microsoft.ServiceBus",
"Microsoft.Sql",
"Microsoft.Storage",
]
}
variable "firewall_config" {
description = "Manages an Azure Firewall configuration"
type = object({
name = string
sku_name = optional(string)
sku_tier = optional(string)
dns_servers = optional(list(string))
private_ip_ranges = optional(list(string))
threat_intel_mode = optional(string)
zones = optional(list(string))
})
}
variable "enable_forced_tunneling" {
description = "Route all Internet-bound traffic to a designated next hop instead of going directly to the Internet"
default = false
}
variable "virtual_hub" {
description = "An Azure Virtual WAN Hub with associated security and routing policies configured by Azure Firewall Manager. Use secured virtual hubs to easily create hub-and-spoke and transitive architectures with native security services for traffic governance and protection."
type = object({
virtual_hub_id = string
public_ip_count = number
})
default = null
}
variable "firewall_application_rules" {
description = "Microsoft-managed virtual network that enables connectivity from other resources."
type = list(object({
name = string
description = optional(string)
action = string
source_addresses = optional(list(string))
source_ip_groups = optional(list(string))
fqdn_tags = optional(list(string))
target_fqdns = optional(list(string))
protocol = optional(object({
type = string
port = string
}))
}))
default = []
}
variable "firewall_network_rules" {
description = "List of network rules to apply to firewall."
type = list(object({
name = string
description = optional(string)
action = string
source_addresses = optional(list(string))
destination_ports = list(string)
destination_addresses = optional(list(string))
destination_fqdns = optional(list(string))
protocols = list(string)
}))
default = []
}
variable "firewall_nat_rules" {
description = "List of nat rules to apply to firewall."
type = list(object({
name = string
description = optional(string)
action = string
source_addresses = optional(list(string))
destination_ports = list(string)
destination_addresses = list(string)
protocols = list(string)
translated_address = string
translated_port = string
}))
default = []
}
/*
variable "firewall_policy" {
description = "Manages a Firewall Policy resource that contains NAT, network, and application rule collections, and Threat Intelligence settings"
type = object({
sku = optional(string)
base_policy_id = optional(string)
threat_intelligence_mode = optional(string)
dns = optional(object({
servers = list(string)
proxy_enabled = bool
}))
threat_intelligence_allowlist = optional(object({
ip_addresses = list(string)
fqdns = list(string)
}))
})
default = null
}
*/
variable "fw_pip_diag_logs" {
description = "Firewall Public IP Monitoring Category details for Azure Diagnostic setting"
default = ["DDoSProtectionNotifications", "DDoSMitigationFlowLogs", "DDoSMitigationReports"]
}
variable "fw_diag_logs" {
description = "Firewall Monitoring Category details for Azure Diagnostic setting"
default = ["AzureFirewallApplicationRule", "AzureFirewallNetworkRule", "AzureFirewallDnsProxy"]
}
variable "log_analytics_workspace_id" {
description = "The resource id of log analytics workspace"
default = null
}
variable "storage_account_name" {
description = "The name of the hub storage account to store logs"
default = null
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}