-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
24 lines (23 loc) · 959 Bytes
/
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
resource "ncloud_access_control_group_rule" "access_control_group_rule" {
access_control_group_no = var.access_control_group_no
dynamic "inbound" {
for_each = var.inbound
content {
protocol = inbound.value.protocol
ip_block = inbound.value.ip_block
source_access_control_group_no = inbound.value.source_access_control_group_no
port_range = inbound.value.port_range
description = inbound.value.description
}
}
dynamic "outbound" {
for_each = var.outbound
content {
protocol = outbound.value.protocol
ip_block = outbound.value.ip_block
source_access_control_group_no = outbound.value.source_access_control_group_no
port_range = outbound.value.port_range
description = outbound.value.description
}
}
}