https://github.com/jetbridge/lemmy-cdk
Automate deploying Lemmy to AWS using CDK
https://github.com/jetbridge/lemmy-cdk
Last synced: 6 months ago
JSON representation
Automate deploying Lemmy to AWS using CDK
- Host: GitHub
- URL: https://github.com/jetbridge/lemmy-cdk
- Owner: jetbridge
- Created: 2021-01-30T18:12:53.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T20:14:15.000Z (over 2 years ago)
- Last Synced: 2024-11-13T18:39:18.168Z (8 months ago)
- Language: TypeScript
- Size: 1.68 MB
- Stars: 8
- Watchers: 3
- Forks: 4
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lemmy AWS CDK
[Lemmy](https://github.com/LemmyNet/lemmy) is a Reddit-style federated social network that speaks ActivityPub. It is written in Rust.
This contains the necessary infrastructure definitions to deploy [Lemmy](https://github.com/LemmyNet/lemmy)
to AWS using their [Cloud Development Kit](https://docs.aws.amazon.com/cdk/latest/guide/home.html).### Included:
* ECS fargate cluster
* Lemmy-UI
* Lemmy
* Pictrs
* IFramely
* CloudFront CDN
* EFS storage for image uploads
* Aurora Serverless Postgres DB
* Bastion VPC host
* Load balancers for Lemmy and IFramely
* DNS records for your site## Quickstart
Clone [Lemmy](https://github.com/LemmyNet/lemmy) and [Lemmy-UI](https://github.com/LemmyNet/lemmy-ui) to the directory above this.
```shell
cp example.env.local .env.local
# edit .env.local
```You should edit .env.local with your site settings.
```shell
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 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