chore: GCP 이전 작업 (#169) #174
Merged
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.
🌱 관련 이슈
📌 작업 내용 및 특이사항
앞으로 빌드 및 배포하는 과정에서 예기치 못한 오류가 발생할 경우를 대비해 테스트에 사용하던 수동 실행 워크플로우는 유지했습니다.
S3자격증명 방법을 변경했습니다.애플리케이션 서버와 데이터베이스 서버를 AWS EC2에서 GCP(GCE) 환경으로 이전하면서 기존 EC2 IAM 기반 S3 접근 방식은 사용할 수 없게 되었습니다.
이에 따라 S3 접근 전용 AWS IAM User/Role을 따로 생성하고,
애플리케이션에서
Access Key/Secret Key를 통해 직접 인증해 S3에 접근하도록 자격증명 방식을 변경했습니다.GCE 서비스 계정을 활용한 OIDC 기반 접근 방식도 한번 검토했는데 구현 복잡도가 너무 높아 현재 단계에서는 적용하지 않았습니다.
Docker Compose기반으로 운영하던Nginx/Certbot구성을 호스트 환경에 직접 설치해 운영하는 방식으로 전환했습니다.컨테이너 기반으로 운영하면 인증서 갱신과 발급 타이밍 관리가 복잡해지는 문제가 있어 단순화하기 위해서 방식을 변경했습니다.
테스트가 정상적으로 완료되서 프로젝트 내
Nginx설정 파일과docker-compose구성 파일을 정리했습니다.🔍 참고사항
dev-api-gcp.fittheman.site설정했습니다.기존과 동일한 도매인으로 설정하면 certbot으로 인증서 발급하는 과정에서 문제가 발생했습니다.
PR이 반영되기 전 AWS 인프라 환경을 정리하고 기존 도메인으로 변경하겠습니다.
📚 기타