Skip to content

Commit b0b1738

Browse files
robo-caphyder
authored andcommitted
add support for stateless rules
1 parent 46ec5f4 commit b0b1738

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/network/rules.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ locals {
2020
{ for k, v in local.fss_rules : k => merge(v, { "nsg_id" = local.fss_nsg_id }) },
2121
) : x => merge(y, {
2222
description = x
23+
stateless = lookup(y, "stateless", false)
2324
network_security_group_id = lookup(y, "nsg_id")
2425
direction = contains(keys(y), "source") ? "INGRESS" : "EGRESS"
2526
protocol = lookup(y, "protocol")
@@ -44,7 +45,7 @@ locals {
4445

4546
resource "oci_core_network_security_group_security_rule" "oke" {
4647
for_each = local.all_rules
47-
stateless = false
48+
stateless = each.value.stateless
4849
description = each.value.description
4950
destination = each.value.destination
5051
destination_type = each.value.destination_type

0 commit comments

Comments
 (0)