Overview
Environments are declared in code so they can be reviewed, reproduced and torn down.
Access is granted per service and per task, never shared broadly.
Trade-offs
- Managed vs self-hosted
- Managed services reduce operations work at the cost of some control.
- Cost vs headroom
- Autoscale for peaks; budget alerts catch drift.
Architecture
Users & internet
Controls at this boundary · typical examples
Public edge
- TLS everywhere
- Web application firewall
- Rate limiting
- DDoS protection
Illustrative diagram. For the end-to-end view, see the architecture on the Developers home.
Workflow
Declare
Infrastructure as code.
What we design for
- Over-permissioned service accounts
- Untested backups
- Unexpected cloud bills
Least-privilege role
resource "aws_iam_policy" "reader" {
policy = jsonencode({
Statement = [{
Effect = "Allow"
Action = ["s3:GetObject"]
Resource = "arn:aws:s3:::intake-docs/*"
}]
})
}