Skip to content

Commit 0f5a8c4

Browse files
authored
fix: add gate for egress rule on security group (PSCLOUD-315) (#411)
Signed-off-by: Eric Bourn <[email protected]>
1 parent 8b89ba1 commit 0f5a8c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ resource "aws_security_group" "sg" {
2626

2727
# Egress rule to allow all outbound traffic from the security group
2828
resource "aws_vpc_security_group_egress_rule" "sg" {
29-
29+
count = var.security_group_id == null && var.vpc_private_endpoints_enabled ? 1 : 0
3030
security_group_id = local.security_group_id
3131

3232
description = "Allow all outbound traffic."

0 commit comments

Comments
 (0)