Skip to content

dabr-ca/infra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform code for dabr.ca

This repository contains Terraform code for dabr.ca, a microblogging site powered by Pleroma.

In the event that the administrator of dabr.ca is unable to fulfil their responsibilities, anyone interested can use this repo to step up as a successor. If you want to run your own instance, you may need to do a find-and-replace for hard-coded values such as domain names.

Setup

  1. Have an AWS account ready.
  2. Register a domain and add it to Route 53.
  3. Create a VPC.
  4. Use the module in this repository to create infrastructure resources.
  5. Run Ansible playbook to install and configure Pleroma on the instance.

Components

  • EC2 instance with ELB for TLS termination
  • RDS instance with PostgresSQL engine
  • S3 bucket with CloudFront for storing user-uploaded files
  • Security groups, IAM roles, ACM certificates, Route 53 records, etc

Check module README for details.

Cost

Most of the AWS resources are eligible for 12-month Free Tier, after which cost is approximately 500 USD/y. You can utilize EC2 Instance Savings Plan and RDS Reserved Instances to cut the price down by more than half if you are committed to run your site on AWS for more than 1 year.