⚠️ Disclaimer: this installation method is not recommended by the Lemmy developers. If you have any problems, you need to solve them yourself or ask the respective authors. If you notice any Lemmy bugs on an instance installed like this, please mention it in the bug report.
- ECS fargate cluster
- CloudFront CDN
- EFS storage for image uploads
- Aurora Serverless Postgres DB
- Bastion VPC host
- Load balancers for Lemmy
- DNS records for your site
Clone the Lemmy-CDK.
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
This is not the cheapest way to run Lemmy. The Serverless Aurora DB can run you ~$90/mo if it doesn't go to sleep.
npm run buildcompile typescript to js
npm run watchwatch for changes and compile
npm run testperform the jest unit tests
cdk deploydeploy this stack to your default AWS account/region
cdk diffcompare deployed stack with current state
cdk synthemits the synthesized CloudFormation template