PersonalCloud and infrastructureIdentity and security

aws-foundation

The AWS Organization baseline every project builds on, covering accounts, guardrails, deployment roles, DNS, and budgets, defined in CDK.

Type
Personal project
Status
Live
Management accountorganization · trail · budgets
Test accountbaseline stack
Prod accountbaseline stack
/foundation/ parameters
Applicationsread zone and identity values from SSM
Workloads read shared values from SSM parameters under /foundation/ and never reference foundation resources directly.

What it manages

  • Service control policies and an organization CloudTrail trail
  • Budgets and cost anomaly detection across every account
  • GitHub OIDC deployment roles for each application repository
  • Hosted zones for nathanreed.dev and test.nathanreed.dev
  • SSM parameters under /foundation/ that applications read at deploy time

Key decisions

  • One OIDC role per repository and account. Each role trusts only its repository’s immutable OIDC subject and can only assume the CDK bootstrap roles, so no AWS keys are stored in GitHub.
  • Guardrails on the workloads organizational unit. Service control policies deny leaving the organization, changing the trail, root user actions, and actions outside us-east-1 other than global services.
  • A small contract for applications. Applications depend on a handful of SSM parameters, not on another repository’s stacks.
  • Decisions are recorded as ADRs in the repository.

Stack

  • AWS CDK
  • TypeScript
  • AWS Organizations
  • IAM Identity Center
  • CloudTrail
  • Route 53
  • GitHub Actions