Node Nsfw Js API TypeScript AWS CDK That No One Asked

  • Multi-AZ
  • Dual Stack
  • Auto Scaling Group
  • Load Balancer
  • Security Best Practice
  • Fault Tolerant
  • Horizontally Scalable
  • Three Tier Architecture

Link to source code: https://github.com/o7-Fire/NodeNsfwJSAPI

Useful commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template
  • export NO_REDIS=true to disable Redis
  • export NO_EFS=true to disable EFS and CACHE_IMAGE_HASH_FILE
  • export NO_CLOUDWATCH=true to disable CloudWatch file logging
  • export NO_SPOT=true to disable Spot Instance
  • export REGIONS=us-east-1,us-east-2 to deploy to multiple regions

Architecture

NodeNsfwJsApiAWSCDKArchitecture

Sorry for the wacky design, OP burned his billing while drawing this

This repo is part of AWS Tutorial for NodeNsfwJs