Install on AWS
⚠️ 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.
Lemmy AWS CDK
This contains the necessary infrastructure definitions to deploy Lemmy to AWS using their Cloud Development Kit.
Included:
- ECS Fargate cluster
- Lemmy-UI
- Lemmy
- Pictrs
- CloudFront CDN
- EFS storage for image uploads
- Aurora Serverless Postgres DB
- Bastion VPC host
- Load balancers for Lemmy
- DNS records for your site
Quickstart
Clone the Lemmy-CDK.
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
Cost
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.
Useful CDK commands
npm run buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit testscdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits the synthesized CloudFormation template