Skip to content

Commit b0977a9

Browse files
authored
Infra: 기존 AWS 계정 → 신규 계정 리소스 마이그레이션
* Infra: RDS 설정 변경 - db 관련정보 하드 코딩 -> 변수화 * Infra: S3 인스턴스 설정 변경 S3 버킷명 변경 - team5-s3-1 -> catfe-s3-1
1 parent 07a95d3 commit b0977a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

infra/terraform/main.tf

Lines changed: 4 additions & 4 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]
@@ -522,7 +522,7 @@ POLICY
522522

523523
# S3 인스턴스 생성
524524
resource "aws_s3_bucket" "s3_1" {
525-
bucket = "team5-s3-1"
525+
bucket = "catfe-s3-1"
526526
tags = {
527527
Key = "TEAM"
528528
Value = "devcos-team05"

0 commit comments

Comments
 (0)