Skip to content

Commit eb7ece0

Browse files
committed
Fix duplicated SG egress attributes for ecs_tasks
1 parent 633effb commit eb7ece0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

network.tf

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,7 @@ resource "aws_security_group" "ecs_tasks" {
8989
}
9090

9191
egress {
92-
description = "Allow outbound to ECS tasks only"
93-
protocol = "tcp"
94-
from_port = 3000
95-
to_port = 3000
96-
# Removed self-reference. Allow all outbound traffic from tasks so they can
97-
# reach other services (DNS, ECR, etc.). If you want tighter egress rules,
98-
# replace with specific cidr_blocks or security_groups pointing to other SGs.
92+
description = "Allow outbound to internet (DNS, ECR, external services)"
9993
protocol = "-1"
10094
from_port = 0
10195
to_port = 0

0 commit comments

Comments
 (0)