Skip to content

Commit 56ff10a

Browse files
committed
Infra: RDS 설정 변경
- db 관련정보 하드 코딩 -> 변수화
1 parent 07a95d3 commit 56ff10a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

infra/terraform/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,9 @@ resource "aws_db_instance" "mysql" {
455455
allocated_storage = 20
456456
storage_type = "gp2"
457457

458-
db_name = "catfe"
459-
username = "catfe_user"
460-
password = "catfe_pass"
458+
db_name = "${var.db_name}"
459+
username = "${var.db_username}"
460+
password = "${var.db_password}"
461461

462462
db_subnet_group_name = aws_db_subnet_group.db_subnet_group.name
463463
vpc_security_group_ids = [aws_security_group.rds_sg_1.id]

0 commit comments

Comments
 (0)