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.
요구사항
기본
Dockerfile
이미지 빌드 및 실행 테스트
docker-compose.yml
AWS S3 버킷 구성
AWS S3 접근을 위한 IAM 구성
AWS S3 테스트
AWS S3를 활용한 BinaryContentStroage 고도화
AWS RDS 구성
AWS RDS PostgreSQL 인스턴스를 생성하세요.
SSH 터널링을 통해 개발 환경에서 접근할 수 있도록 EC2를 구성하세요.
보안 그룹에서 인바운드 규칙을 편집하세요.
DataGrip을 통해 연결 후 데이터베이스와 사용자, 테이블을 초기화하세요.
데이터 소스 추가 시 SSH/SSL > Use SSH tunnel 설정을 활성화하세요. 이때 이전에 다운로드한 .pem 파일을 활용하세요.
연결이 성공하면 데이터베이스와 사용자, 테이블을 초기화하세요.
AWS ECR 구성
이미지를 배포할 퍼블릭 레포지토리(discodeit)를 생성하세요.
AWS CLI를 설치하세요.
aws configure 실행 후 앞서 생성한 discodeit IAM 사용자 정보를 입력하세요.
discodeit IAM 사용자가 ECR에 접근할 수 있도록 다음 권한을 부여하세요.
Docker 클라이언트를 배포할 레지스트리에 대해 인증합니다.
멀티플랫폼을 지원하도록 애플리케이션 이미지를 빌드하고, discodeit 레포지토리에 push 하세요.
AWS 콘솔에서 푸시된 이미지를 확인하세요.
AWS ECS 구성
이 파일을 S3에 업로드하세요.
이 파일은 형상관리되지 않도록 주의하세요.
AWS ECS 콘솔에서 클러스터를 생성하세요.
태스크를 정의하세요.
discodeit 클러스터 상세 화면에서 서비스를 생성하세요.
태스크의 EC2 보안 그룹의 인바운드 규칙을 설정하여 어디서든 접근할 수 있도록 하세요.
EC2 보안 그룹에서 인바운드 규칙을 편집하세요.
규칙 유형으로 HTTP를 선택하세요.
소스로 Anywhere-IPv4를 선택하여 모든 IP를 허용하세요.
태스크 실행이 완료되면 해당 EC2의 퍼블릭 IP에 접속해보세요.
리뷰를 위해 PR에 포함해야할 정보
RDS
ECR
ECS
VPC
IAM
심화
주요 변경사항
스크린샷
멘토에게