Skip to content

cdk typescript로 aws 인프라 구축/테스트 해보는 샘플입니다.

Notifications You must be signed in to change notification settings

blackwitch/cdk_sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CDK typescript sample

cdk를 이용해 ECS Fargate 서비스를 구축하고 부하 테스트를 해보는 샘플 프로젝트입니다.

image

hello-stack.ts에는 기본적인 VPC와 관련된 설정 방법과 보안 그룹 생성/적용하는 방법, RDS 생성과 ECS 구축에 대한 예제를 포함하고 있습니다.

상세한 내용은 아래를 참고하세요.

파일 설명

ROOT
  │
  └─── hello-stack.ts : cdk sample. 
  │
  └─── hello-api
         │
         └─── main.py : sample api service 
         └─── requirements.txt : module list
         └─── Dockerfile
  │
  └─── locust
         │
         └─── main.py : script for performance testing

설명

이 샘플 진행을 위해 aws cli, nodejs, python 3.x 가 설치되어 있어야 합니다.

hello-api를 docker로 빌드하여 ecr에 업로드 한 후, 프로젝트를 아래와 같이 생성하세요.

이후 lib 폴더에 hello-stack.ts를 넣고 line 142의 account number와 ecr 저장소를 적용한 후 deploy하면 됩니다.

mkdir hello
cd hello
cdk init --language typescript

상세 설명 링크

CDK로 AWS 인프라 구축하기 - #1 CDK 둘러보기

CDK로 AWS 인프라 구축하기 - #2 VPC 생성 코드 작성하기

CDK로 AWS 인프라 구축하기 - #3 보안 그룹과 RDBMS

CDK로 AWS 인프라 구축하기 - #4 ECS Cluster 구성

CDK로 AWS 인프라 구축하기 - #5 scale out 테스트

About

cdk typescript로 aws 인프라 구축/테스트 해보는 샘플입니다.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published