skkuding / codedang

Online Judge for SKKU
https://codedang.com
MIT License
43 stars 10 forks source link

feat(infra): created gateway vpc endpoint for communication between ECS and S3 #2123

Closed junhyunlee123 closed 3 weeks ago

junhyunlee123 commented 1 month ago

Description

NAT 인스턴스의 ECS와 S3 간의 커뮤니케이션을 대체하기 위해 gateway vpc endpoint를 추가하였습니다. 이 기능이 작동하는지 테스트하려면, NAT instance public ip를 허용하는 S3 bucket policy를 지운후, ECS와 S3 간의 통신이 여전히 유지되는 경우, 이 게이트웨이 vpc 엔드포인트가 제대로 작동하는 것으로 간주하여 테스트 할수 있을것 같습니다.

Closes TAS-887

Additional context

PR #2122와 코드 작성내용은 같지만, gateway vpc endpoint가 s3와 독점적으로 통신하는 점을 비추어 볼때, 연관성이 더욱 있는 /storage directory로 (원래는 /network directory) gateway vpc endpoint 코드 파일을 옯겼습니다.

Before submitting the PR, please make sure you do the following

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
codedang ✅ Ready (Inspect) Visit Preview Sep 26, 2024 9:47am
notion-workspace[bot] commented 1 month ago

Codedang환경에서 gateway vpc endpoint를 활용하여 ECS↔S3 통신 적용하기

junhyunlee123 commented 3 weeks ago

네 알겠습니다.