latest run 54 pass 0 fail 0 skipevidence →
HKB Operations: pages
HKB OperationsKnowledge space

Starred pages

Pages

Page directory · Labels · [ hides this

ADR-0004 superseded

New accounts come from Control Tower, not a custom factory (superseded)

  • Status: Superseded (see ADR-0003)
  • Date: 2026-09-30
  • Superseded 2026-10-01 and 2026-10-02.

Context

Each part of HKB (Prod, Dev, Sandbox and so on) lives in its own AWS account, so something has to create accounts and set them up safely. The first plan was a custom-built "account factory": an automated workflow that created each account and held it in a quarantine area until its safety checks passed.

Decision

The original decision was the custom factory with a quarantine area. It was replaced in two steps: - Control Tower's built-in Account Factory creates the accounts instead (see ADR-0003). - The quarantine area was dropped. Each account goes straight to its final place in the organization, and its root lockdown is applied as the first step after it's created.

Consequences

  • Each account is defined as its own small piece of code, so creating one is a reviewed change like any other.
  • Every new account gets the same follow-up steps: pause the configuration recorder for cost, set contacts, lock down root, and grant read-only access.
  • Control Tower also gives each new account a default network, which is accepted.
  • AWS limits how many accounts an organization can hold.

Alternatives considered

  • Keep the custom factory and quarantine. More precise, but more to build and test.
  • Control Tower's Terraform version. Rejected because HKB is built with CloudFormation (ADR-0002).
LLMs look here
  • Original decisions D13 (custom Account Factory in master) and D46 (fully automated onboarding with an Onboarding OU until a root-credential check passed and SCP-09 was attached). Superseded by D53 (Control Tower's Account Factory vends Shared Services, Prod, Dev and Sandbox; Log Archive and Security come with the landing zone) and D61 (no Onboarding OU; vend into the target OU, attach SCP-09 post-vend).
  • Accounts are vended by hkb-org-account-<name> stacks, a Service Catalog provisioned product on the Control Tower Account Factory product. There is no accounts.yaml.
  • Post-vend: stop the Config recorders, set alternate contacts, attach SCP-09, assign HKB-ReadOnly.
  • Account quota: Organizations L-E619E033. Rejected: Account Factory for Terraform (AFT).

Page information

Owner
Platform Engineering
Status
superseded From the decision record.
Generated from
docs/adr/0004-account-vending-superseded.md
Linked from
Decisions