- ECS fargate cluster
- Lemmy-UI
- Lemmy
- Pictrs
- IFramely
- Ultri API
- SuperTokens
- CloudFront CDN
- EFS storage for image uploads
- Aurora Serverless Postgres DB
- Redis cache
- Bastion VPC host
- Load balancers for Lemmy, IFramely, Ultri API
- DNS records for your site
Clone Lemmy and Lemmy-UI to the directory above this.
cp example.env.local .env.local
# edit .env.local
You should edit .env.local with your site settings.
npm install -g aws-cdk
npm install
cdk bootstrap
cdk deploy
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template