Skip to content

Boilerplate to host Trilium on AWS #2964

@cednore

Description

@cednore

TLDR: https://github.com/cednore/trilium

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 🛠️

  1. Terraform
  2. AWS
  3. Ansible
  4. Docker

Infrastructure summary 🏗️

  1. Single VPC with 3 public/private subnets
  2. An EC2 instance (t3.micro as default), publicly accessible via SSH
  3. Dockerized app container (default zadam/trilium:0.55.1)
  4. HTTPS proxy powered by nginx (inside a docker container)
  5. CloudWatch log group to keep app logs and proxy logs
  6. S3 bucket to keep the app data backups
  7. Security groups for the app instance
  8. Route53 records for domain name registration (subdomain level as default)
  9. A SSL certificate issued by Let's Encrypt for the app domain name
  10. Ansible playbooks to install and configure trilium on the EC2 instance
  11. Everything is written in Terraform, highly modularized, wrapped by Terragrunt

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions