I have created a simple terraform boilerplate to self-host trilium by fully automated deployment on AWS. Everybody is welcome to check out the repo and file an issue if any found.
I will add a guide on this repo for self-starters and trilium fans, explaining how to host trilium on their AWS accounts at ease.
Tech stacks 🛠️
- Terraform
- AWS
- Ansible
- Docker
Infrastructure summary 🏗️
- Single VPC with
3 public/private subnets
- An EC2 instance (
t3.micro as default), publicly accessible via SSH
- Dockerized app container (default
zadam/trilium:0.55.1)
- HTTPS proxy powered by nginx (inside a docker container)
- CloudWatch log group to keep app logs and proxy logs
- S3 bucket to keep the app data backups
- Security groups for the app instance
- Route53 records for domain name registration (subdomain level as default)
- A SSL certificate issued by Let's Encrypt for the app domain name
- Ansible playbooks to install and configure trilium on the EC2 instance
- Everything is written in Terraform, highly modularized, wrapped by Terragrunt
TLDR: https://github.com/cednore/trilium
I have created a simple terraform boilerplate to self-host
triliumby fully automated deployment on AWS. Everybody is welcome to check out the repo and file an issue if any found.I will add a guide on this repo for self-starters and trilium fans, explaining how to host trilium on their AWS accounts at ease.
Tech stacks 🛠️
Infrastructure summary 🏗️
3public/private subnetst3.microas default), publicly accessible via SSHzadam/trilium:0.55.1)