-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
26 lines (25 loc) · 1.29 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
resource "azurerm_network_security_group" "this" {
name = var.nsg_name
location = var.location
resource_group_name = var.resource_group
tags = var.tags
dynamic "security_rule" {
for_each = var.security_rules
content {
name = security_rule.value.name
priority = security_rule.value.priority
direction = security_rule.value.direction
access = security_rule.value.access
protocol = security_rule.value.protocol
description = security_rule.value.description
source_port_range = security_rule.value.source_port_range
source_port_ranges = security_rule.value.source_port_ranges
destination_port_range = security_rule.value.destination_port_range
destination_port_ranges = security_rule.value.destination_port_ranges
source_address_prefix = security_rule.value.source_address_prefix
source_address_prefixes = security_rule.value.source_address_prefixes
destination_address_prefix = security_rule.value.destination_address_prefix
destination_address_prefixes = security_rule.value.destination_address_prefixes
}
}
}