Repository navigation
Description
Problem
ground's provision-sre (ground#8) creates accounts manually via the Organizations API. At scale (>10 SREs), institutions need the automated guardrails, drift detection, and audit trail that AWS Control Tower provides. ground should be deployable as an AFT customization so Control Tower manages the account factory lifecycle.
Architecture
AWS Control Tower
└── Account Factory for Terraform (AFT)
└── ground AFT customization (this issue)
├── ground-logging-stack
├── ground-security-scp
├── ground-per-ou-scps
└── attest compile --sre-type <catalog-type>
Required work
-
AFT module: Terraform module wrapping ground's CloudFormation stacks as AFT account customizations. Input:
sre_typevariable. Output: compliant account. -
Control Tower OU alignment: Verify ground's OU hierarchy is compatible with Control Tower's required OU structure (Security, Sandbox, Workloads). Map ground tiers to CT conventions.
-
AFT pipeline: GitHub Actions workflow that applies ground customizations when Control Tower vends a new account. Triggered by AFT lifecycle hook.
-
Drift detection: Use AWS Config (already deployed by ground logging stack) to detect drift from ground baseline. Surface in attest scan.
-
Migration path: For organizations already using Control Tower, document how to adopt ground as an AFT customization without rebuilding existing accounts.
Compatibility note
Control Tower manages the Security, Log Archive, and Audit accounts. ground should not redeploy these; it should detect CT presence and defer to CT for those accounts while applying its own customizations to workload accounts.
Related
- ground#8 (provision-sre — this issue replaces manual provisioning at scale)
- ground v0.2.0 already deployed the logging + security foundation that AFT will wrap
Activity
scttfrdmn commentedon Jun 9, 2026
Dependency (post-kernel roadmap, #11): folded into the
vendortool's drop-in design (#9) — vendor takes any target parent, including an AFT-managed OU, so the Control Tower/AFT case is a vendor deployment mode rather than a separate backend. Not closing yet. Cross-ref: #9.