From 2ae2ad827e8c0663024f84979a052252f297daad Mon Sep 17 00:00:00 2001 From: Dimo-2562 Date: Tue, 14 Oct 2025 11:13:06 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20DB=20=EC=97=B0=EA=B2=B0=EC=9D=84=20p?= =?UTF-8?q?ublic=20access=EA=B0=80=20=EC=95=84=EB=8B=8C=20ec2=EB=A5=BC=20?= =?UTF-8?q?=EA=B1=B0=EC=B3=90=20=EC=A7=84=ED=96=89=ED=95=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/main.tf b/infra/main.tf index bb06472..4e81075 100644 --- a/infra/main.tf +++ b/infra/main.tf @@ -410,7 +410,7 @@ resource "aws_instance" "app" { # RDS Subnet Group resource "aws_db_subnet_group" "main" { name = "${var.project_name}-${var.environment}-db-subnet-group" - subnet_ids = aws_subnet.public[*].id + subnet_ids = aws_subnet.private[*].id tags = { Name = "${var.project_name}-${var.environment}-db-subnet-group" @@ -434,7 +434,7 @@ resource "aws_db_instance" "main" { vpc_security_group_ids = [aws_security_group.rds.id] skip_final_snapshot = true - publicly_accessible = true + publicly_accessible = false backup_retention_period = 7 enabled_cloudwatch_logs_exports = ["error", "general", "slowquery"] From 76cda6a0f7d1b09524c12570706f8074a1ac44ff Mon Sep 17 00:00:00 2001 From: Dimo-2562 Date: Tue, 14 Oct 2025 11:28:34 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20ec2=20=ED=84=B0=EB=84=90=EB=A7=81?= =?UTF-8?q?=20=ED=8C=8C=EC=9D=BC=20=EA=B9=83=20ignore=EC=97=90=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index cc620d8..d560562 100644 --- a/.gitignore +++ b/.gitignore @@ -42,4 +42,9 @@ application-local.yml *.tfstate *.tfstate.* *.tfvars -!*.tfvars.example \ No newline at end of file +!*.tfvars.example + +### tunnel ### +application-local-tunnel.yml +start-dev-tunnel.sh +stop-dev-tunnel.sh \ No newline at end of file