We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fadfd3b + a986b20 commit c28aa88Copy full SHA for c28aa88
component/ecs-ec2/security_group.tf
@@ -3,6 +3,15 @@ resource "aws_security_group" "ecs_instance_sg" {
3
description = "Security group for ECS EC2 instances (shared runtime)"
4
vpc_id = var.vpc_id
5
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
+
15
# Outbound: 기본 허용
16
egress {
17
from_port = 0
@@ -32,4 +41,4 @@ resource "aws_security_group_rule" "app_ingress" {
32
41
to_port = var.container_port
33
42
protocol = "tcp"
34
43
cidr_blocks = [each.value]
35
-}
44
+}
0 commit comments