S3 파일 저장에 관한 수정, CloudFront 도입 #98
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.
관련 이슈
작업 내용
특이 사항
초기에는 반환시에 url prefix를 붙여서 반환하려고 시도하였지만 기존 코드상 이를 끼워넣는데 많은 불편함이 존재하였습니다.
이에 api를 새로 개발하고 적절한 url을 가져가서 붙여서 사용하는게 좋지않을까 생각되어 수정해보았습니다.
다음과같이 url prefix를 확인할 수 있으며 cloudfront로 변경시에도 해당 값만 가져가서 붙이면 되지 않을까 생각됩니다.
경로들은 application-secret.yml 파일에 추가하여 작업하였습니다.
앞으로 DB 데이터 수정, 프론트 코드 수정, s3 정책수정 등 다양한 부분을 고려하여 신중히 작업해야될 것 같습니다.
해당 pr 머지 진행 후, api를 활용하여 생성한 경로로 cloudFront를 통해 파일을 잘 불러오는지 확인하고,
DB 데이터를 수정(url prefix 제거), s3 정책 수정 순으로 진행하면 될 것 같습니다.
리뷰 요구사항 (선택)