Skip to content

AWS Control Tower / Account Factory for Terraform (AFT) integration #9

Open

Description

@scttfrdmn

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

  1. AFT module: Terraform module wrapping ground's CloudFormation stacks as AFT account customizations. Input: sre_type variable. Output: compliant account.

  2. 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.

  3. AFT pipeline: GitHub Actions workflow that applies ground customizations when Control Tower vends a new account. Triggered by AFT lifecycle hook.

  4. Drift detection: Use AWS Config (already deployed by ground logging stack) to detect drift from ground baseline. Surface in attest scan.

  5. 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

  1. added
    type:feature
    component:provisioner
    priority:medium
    on Jun 8, 2026
  2. scttfrdmn commented on Jun 9, 2026

    @scttfrdmn
    ContributorAuthor

    Dependency (post-kernel roadmap, #11): folded into the vendor tool'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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    component:provisionerpriority:mediumtype:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions