chat-websocket-fargate icon indicating copy to clipboard operation
chat-websocket-fargate copied to clipboard

Build a Nodejs chat room app on AWS Fargate + redis using AWS CDK.

Architecture:

Architecture

Current CDK script uses a dockerize Redis running on Fargate, it is not durable or HA. Challenge: Change this CDK code to adopt Amazon ElastiCache!

get nodejs


nvm install 8.12.0 

nvm alias default v8.12.0

install node modules

npm install
npm run build

show the aw resources that cdk will create

npx cdk diff

make sure your aws cli is setup (eg: aws cloudformation), deploy the aws resources


npx cdk deploy --require-approval never

remove all resources:

npx cdk destroy