We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98eff00 commit 633effbCopy full SHA for 633effb
network.tf
@@ -93,7 +93,13 @@ resource "aws_security_group" "ecs_tasks" {
93
protocol = "tcp"
94
from_port = 3000
95
to_port = 3000
96
- security_groups = [aws_security_group.ecs_tasks.id]
+ # 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.
99
+ protocol = "-1"
100
+ from_port = 0
101
+ to_port = 0
102
+ cidr_blocks = ["0.0.0.0/0"]
103
}
104
depends_on = [aws_security_group.alb]
105
0 commit comments