Skip to content

Commit

Permalink
add support for stateless rules
Browse files Browse the repository at this point in the history
  • Loading branch information
robo-cap authored and hyder committed Aug 18, 2024
1 parent 46ec5f4 commit b0b1738
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/network/rules.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ locals {
{ for k, v in local.fss_rules : k => merge(v, { "nsg_id" = local.fss_nsg_id }) },
) : x => merge(y, {
description = x
stateless = lookup(y, "stateless", false)
network_security_group_id = lookup(y, "nsg_id")
direction = contains(keys(y), "source") ? "INGRESS" : "EGRESS"
protocol = lookup(y, "protocol")
Expand All @@ -44,7 +45,7 @@ locals {

resource "oci_core_network_security_group_security_rule" "oke" {
for_each = local.all_rules
stateless = false
stateless = each.value.stateless
description = each.value.description
destination = each.value.destination
destination_type = each.value.destination_type
Expand Down

0 comments on commit b0b1738

Please sign in to comment.