Skip to content

refactor: Prod 환경에서 RDS 리소스 제거 #52

@Hexeong

Description

@Hexeong

상위 이슈

#39

선행 조건

Warning

#51 (데이터 마이그레이션) 작업이 완료되어 앱이 DB EC2에 정상적으로 연결된 것을 확인한 이후에 진행합니다.
이 PR이 머지되면 RDS가 즉시 삭제됩니다.

작업 내용

앱이 DB EC2로 전환 완료된 이후, 더 이상 사용하지 않는 RDS 관련 리소스와 변수를 제거합니다.

environment/prod/ 변경

  • main.tf: RDS 관련 변수 전달 제거
  • variables.tf: 아래 변수 제거
    • db_instance_class
    • rds_identifier
    • db_engine_version
    • db_parameter_group_name
    • kms_key_arn
    • db_ingress_rules
    • additional_db_users

modules/app_stack/ 변경

  • rds.tf: RDS 관련 리소스 제거 (aws_db_instance, mysql_user, mysql_grant)
  • security_groups.tf: aws_security_group.db_sg 제거
  • variables.tf: RDS 전용 변수 제거
  • provider.tf: mysql provider 제거 (사용처 없을 시)

작업 상세 내용

  • environment/prod/main.tf RDS 변수 전달 제거
  • environment/prod/variables.tf RDS 변수 제거
  • modules/app_stack/rds.tf 제거
  • modules/app_stack/security_groups.tf db_sg 제거
  • modules/app_stack/variables.tf RDS 변수 제거
  • modules/app_stack/provider.tf mysql provider 제거 여부 확인
  • terraform plan으로 RDS destroy 대상 확인 후 머지

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions