The problem
A small product still needs a request path someone can reason about: where TLS ends, what filters abusive traffic, what runs the API, where state lives and who gets paged.
Clicking that together in a console leaves nothing to review. I wrote it as modules so every hop is a resource with a name.
Constraints
- Serverless compute and pay-per-request tables; the fixed costs sit at the edge (WAF) and in DNS.
- Edge protection in front of both the site and the API.
- Public access blocked on every bucket.
Architecture
Modules: aws-static-site (S3, CloudFront with origin access control), aws-api (API Gateway, Lambda, DynamoDB), aws-api-edge (CloudFront and WAF in front of the API) and aws-newsletter.
What shipped
- Four modules with variables, outputs and a README each.
- Provider lock files in every module (terraform init has been run).
Evidence and receipts
Owned
Read every resource. Counted with wc -l over *.tf.
What I would do differently
- Add a remote state backend with locking before anyone else touches it.
- Move the committed terraform.tfvars files to .tfvars.example; they hold no secrets, but identifiers do not belong in a public repo.
- Add terraform validate and a plan step to CI on a self-hosted runner.
Honest limitations
01 Input
Next step
Bring an AI feature or workflow that has to keep working. We scope the first verifiable step on a 15-minute call, and I give an honest answer on fit either way.
Book a 15-minute call Not sure what you need? Answer 3 questions