]> Repos - crimata-infra/summary
 
descriptionProvisions and manages customer infrastructure (EC2, DNS, notifications) for Crimata
last changeThu, 16 Jul 2026 20:16:00 +0000 (20:16 +0000)
readme

crimata-infra

Backend service that provisions and manages actual customer infrastructure for Crimata: spins up an EC2 instance, points DNS at it (Route 53), sends the customer a notification (via Resend), and can export their data to S3.

What it does

Exposes a small HTTP API (Go, chi router):

provision.sh is the bootstrap script that actually runs on the new EC2 instance — currently just installs nginx and a placeholder welcome page, a work in progress.

Running it

Needs Postgres, an AWS account (EC2 + Route53 + S3 permissions), and a Resend API key.

cp .env.example .env # fill in DATABASE_URL, AWS credentials, EC2/DNS/S3 config go run ./cmd/server

There's also a terraform/ directory for provisioning the supporting AWS resources (VPC, security groups, etc.) this service depends on.

shortlog
9 days ago Andrew GundersenAdd README main
2026-03-02 Andrew GundersenUpdate provision.sh to install crimata-agent and fix...
2026-03-02 Andrew GundersenReplace AWS SES with Resend for email delivery
2026-02-27 Andrew GundersenRefactor customer → instance package, add dock service...
2026-02-25 Andrew GundersenSwitch to SSH provisioning, embed provision.sh, add...
2026-02-22 Andrew GundersenInitial commit
heads
9 days ago main