Skip to content

Commit c28aa88

Browse files
committed
Merge branch 'feat/57' into sandbox
2 parents fadfd3b + a986b20 commit c28aa88

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

component/ecs-ec2/security_group.tf

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ resource "aws_security_group" "ecs_instance_sg" {
33
description = "Security group for ECS EC2 instances (shared runtime)"
44
vpc_id = var.vpc_id
55

6+
# Allow all traffic from ALB
7+
ingress {
8+
from_port = 0
9+
to_port = 65535
10+
protocol = "tcp"
11+
security_groups = [aws_security_group.nomoney_alb_sg.id]
12+
description = "Allow traffic from ALB"
13+
}
14+
615
# Outbound: 기본 허용
716
egress {
817
from_port = 0
@@ -32,4 +41,4 @@ resource "aws_security_group_rule" "app_ingress" {
3241
to_port = var.container_port
3342
protocol = "tcp"
3443
cidr_blocks = [each.value]
35-
}
44+
}

0 commit comments

Comments
 (0)