Repository navigation
PM AWS 인프라 이전 및 S3 원격 Terraform state 구성 - #325
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PM AWS 계정의 운영 인프라를
infra/terraform-pm으로 분리하고 기존 계정 구성은 폐기용으로 표시합니다. 계정 ID 제한, SSH 키 관리, 업로드용 S3/CloudFront, RDS 삭제 방지와 운영 절차를 코드에 반영합니다. 기존 AfterNote 리소스 정리와 질문 100개 이전은 완료된 상태입니다.현재 운영 state를 전용 비공개 S3의
prod/terraform.tfstate로 옮겼습니다. 버전 관리·AES256 암호화·HTTPS 강제·공개 차단·삭제 방지를 적용하고 S3 네이티브 잠금으로 동시 작업을 막습니다. Terraform 최소 버전은 1.10이며 state·변수·개인 키·이전 백업은 Git에서 제외합니다.Terraform CI는 고정된 1.14.8에서 fmt와 잠금 파일 기준 provider 초기화 및 validate를 수행하며, AWS backend 접속이나 apply를 실행하지 않습니다. Linux CI와 macOS의 공식 provider 체크섬을 함께 기록합니다.
검증: 두 Terraform 루트 validate, PM fmt, 기존 운영 리소스 51개 변경 없이 state 버킷 설정 6개만 추가, 이전 전후 전체 리소스 57개·출력 일치, 원격 plan 변경 없음, 동시 plan 잠금 차단과 정상 해제 확인. 기존 배포·smoke·contract 테스트와 구 리소스 삭제 후 HTTPS·로그인·오늘의 질문 확인도 완료했습니다.
최신 커밋
4cecf8d의 PR CI: Terraform validate, 워크플로 품질 검사, Java 테스트, MySQL 통합 테스트, Docker 이미지 검증, 의존성 검토, CodeQL 및 최종 build 집계 모두 통과했습니다.