chore: 인프라 환경 변경 테스트 (#172) #173
Closed
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.
🌱 관련 이슈
📌 작업 내용 및 특이사항
AWS->GCP로 이전함에 따라 설정을 변경하고 테스트하기 위한 PR 입니다.develop_build_deploy.yml워크플로우를 GCE 기반으로 리팩토링해 다시 push할 예정입니다.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 구성 파일을 정리할 예정입니다.
🔍 참고사항
기존과 동일한 도매인으로 설정하면 certbot으로 인증서 발급하는 과정에서 문제가 발생했습니다.
추후 GCE로 완전히 이전이 되면 기존 도메인으로 변경하겠습니다.
📚 기타