-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
33 lines (28 loc) · 1.08 KB
/
main.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
resource "azurerm_firewall_policy" "this" {
name = var.firewall_policy_name
location = var.location
resource_group_name = var.resource_group_name
base_policy_id = var.base_policy_id
private_ip_ranges = var.private_ip_ranges
auto_learn_private_ranges_enabled = var.auto_learn_private_ranges_enabled
sku = var.sku
threat_intelligence_mode = var.threat_intelligence_mode
sql_redirect_allowed = var.sql_redirect_allowed
dns {
proxy_enabled = var.dns_proxy_enabled
servers = var.dns_servers
}
dynamic "insights" {
for_each = var.insights_enabled ? [1] : []
content {
enabled = var.insights_enabled
default_log_analytics_workspace_id = var.log_analytics_workspace_id
retention_in_days = var.retention_in_days
log_analytics_workspace {
id = var.log_analytics_workspace_id
firewall_location = var.location
}
}
}
tags = var.tags
}