Technical guide

Cloud & Infrastructure

Infrastructure defined as code, sized to the workload, with least privilege.

On this page
  1. Overview
  2. Trade-offs
  3. Architecture
  4. Workflow
  5. Challenges
  6. Example

All guides

← All guides

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

Illustrative examplehcl
resource "aws_iam_policy" "reader" {
  policy = jsonencode({
    Statement = [{
      Effect = "Allow"
      Action = ["s3:GetObject"]
      Resource = "arn:aws:s3:::intake-docs/*"
    }]
  })
}