ADR-0029 accepted
Two ways to deploy: organization-wide rollouts, and one account at a time
Context
Some things must exist in every account, such as the baseline roles and the alert wiring. AWS has a rollout feature (StackSets) for exactly that: one template is applied to every account in part of the organization, including accounts added later. But it's awkward for something that belongs to a single account, such as the website, where each change should be an ordinary previewed and approved change.
Decision
- Organization-wide baselines go out as rollouts from the pipeline account, applied automatically by area.
- Things that belong to one account, such as the security services and the website, are deployed directly into that account through a deploy role that the baseline rollout creates there.
Consequences
- Single-account changes stay reviewable as ordinary previews, with the pipeline's normal approvals.
- There are two deployment mechanisms to understand instead of one.
- The per-account deploy roles only exist once the baseline rollout has run, so it always goes first.
Alternatives considered
- Rollouts for everything. One mechanism, but every single-account change becomes a rollout operation.
- Per-account deploy roles for everything. No automatic coverage for new accounts.
LLMs look here
- Records D71. Service-managed StackSets from Shared Services:
hkb-baseline-iamandhkb-baseline-events, auto-deployed by OU. They create their own target-account roles but can't deploy to master or use transforms such as SAM. - Single-account stacks use native CloudFormation actions through per-account deploy roles delivered by
hkb-baseline-iam; each needs an action role and a CloudFormation service role (ADR-0024). Role names set at the start of Roadmap Stage 3.
Page information
- Owner
- Platform Engineering
- Status
- accepted From the decision record.
- Generated from
docs/adr/0029-hybrid-deploy-path-for-security-and-workload-accounts.md- Linked from
- Decisions