Skip to content

Commit 73dbd0e

Browse files
JCS-13593 Add egress rule to managed server NSG instead of admin server NSG
- Filter out admin server NSG instead of managed server NSG when creating egress rule.
1 parent 4430af2 commit 73dbd0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

terraform/modules/network/vcn-config/nsg_security_rule.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ resource "oci_core_network_security_group_security_rule" "fss_ingress_security_r
234234
resource "oci_core_network_security_group_security_rule" "egress_security_rule" {
235235
for_each = {
236236
for nsg_name, nsg_id in var.nsg_ids :
237-
nsg_name => nsg_id if nsg_name != "managed_nsg_id" && nsg_name != "mount_target_nsg_id" && length(nsg_id) != 0
237+
nsg_name => nsg_id if nsg_name != "admin_nsg_id" && nsg_name != "mount_target_nsg_id" && length(nsg_id) != 0
238238
}
239239
network_security_group_id = element(each.value, 0)
240240
direction = "EGRESS"

0 commit comments

Comments
 (0)