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 계정에서 MOMO 자체 AWS 계정으로 전환함에 따라 프론트엔드 dev 및 prod 배포 파이프라인을 업데이트했습니다.
주요 변경 사항
AWS 계정 변경
AWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
추가하여 AWS 인증 방식 적용배포 방식 개선
runs-on: [self-hosted, linux, ARM64, dev]
→runs-on: ubuntu-latest
변경하여 배포 환경 통일s3://techcourse-project-2024/momo-dev
→s3://momo-fe-s3/momo-fe-dev/
s3://techcourse-project-2024/momo
→s3://momo-fe-s3/momo-fe-prod/
IAM 권한 문제 해결
momo-fe
)가 S3 버킷(momo-fe-s3
)에서s3:ListBucket
작업을 수행할 권한이 없어 오류 발생 → 아래의 정책을 적용하여 배포 시 S3 버킷 접근 권한 문제 해결배포 워크플로우 테스트
검증을 위해 MOMO의 main 레포지토리를 fork하여 개인 레포지토리에서 배포 테스트 진행
업데이트된 CD 워크플로우의 정상 동작을 검증하기 위해 build된 정적 파일이 momo-fe-s3 S3 버킷의 test 경로에 업로드되는지 확인하였습니다. 이후 CloudFront 캐시를 무효화하여 변경 사항이 정상적으로 반영되는지 검증하였습니다. (https://test.momonow.kr)
특이 사항
리뷰 요청 사항 (선택)