Skip to content

Commit 68b189c

Browse files
committed
fix: 보안 그룹을 자신에게 열게 수정
1 parent 94eb9be commit 68b189c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

terraform/common/locals.tf

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,14 @@ locals {
177177
protocol = "tcp"
178178
description = "Dynamic ports from ALB"
179179
}
180+
ec2_from_self_mysql = {
181+
source_security_group_key = "ec2"
182+
target_security_group_key = "ec2"
183+
from_port = 3306
184+
to_port = 3306
185+
protocol = "tcp"
186+
description = "MySQL access within same SG (self-access)"
187+
}
180188
rds_from_ec2 = {
181189
source_security_group_key = "ec2"
182190
target_security_group_key = "rds"
@@ -187,7 +195,3 @@ locals {
187195
}
188196
}
189197
}
190-
191-
192-
193-

0 commit comments

Comments
 (0)