HKB Operations
HKB is a seven-account AWS organization run the way a regulated company runs its cloud, and this wiki is its documentation. It covers what each account does, who can reach it, which policies fence it, what it costs, and every step needed to build it again from an empty AWS account.
Every page is generated from the repository that builds the environment. The tables of accounts, roles, policies and checks are read from the templates and the control tests at build time, so the documentation can't drift from the code. Control test INV-11 compares the code with the management, Shared Services and Security stacks and the StackSets on each run. Account and organization IDs never appear.
Reading paths
Engineers. Start with the architecture and its account pages, then the rebuild guide, which lists every step the pipelines can't take, with the command and the check for each. The policy catalog shows each guardrail statement as deployed.
Security analysts. Start with access: every permission set and machine role, by account, with its boundary. The roles pages show each one's trust and policy text as deployed. Then the policy catalog, the controls and their latest evidence. The Security account page covers GuardDuty, Security Hub and where alerts go, and the runbooks say what to do when each alert arrives.
Managers. Start with cost, then the decisions, which record what was chosen, what was rejected and why. The controls page shows how each rule is enforced and tested.
InfoFor AI agents, /llms.txt lists these pages in reading order, and each wiki page has a plain-markdown copy at index.md.
Scope
NoteThis is a working environment, built and verified one stage at a time. Pages describe what is deployed, not what is planned. Where something isn't built yet (the shared tier's gate, for example), the page says so and names the decision that scheduled it. A mapping to a framework is a self-assessment, not an audit: HKB isn't certified against anything.
Start here
- Rebuild from zeroEvery manual step, in order, with the check that proves it
- Policy catalogEvery organization policy statement, as deployed
- RunbooksIncident response runbooks per alert, and what is not alerted, by design
- AccessEvery permission set and machine role, by account
- ControlsEach control, its policy text and the check that proves it
- ComplianceHow the controls line up against ISO 27001 and SOC 2
- CostSpend by month, account and component, budgets and limits
- DecisionsArchitecture decision records
Recently updated
Page directory
Access
Roles
Member and management roles
- hkb-baseline-account-settings
- hkb-events-forwarder
- hkb-pipeline-cfn-security
- hkb-pipeline-cfn-site
- hkb-pipeline-security
- hkb-pipeline-site
- hkb-pipeline-site-sync
- AWSControlTowerAdmin
- AWSControlTowerCloudTrailRole
- AWSControlTowerConfigAggregatorRoleForOrganizations
- AWSControlTowerStackSetRole
- hkb-master-org-cfn
- hkb-net-flow-logs
- hkb-log-archive-replication
Rebuild from zero
- H-0 Workstation and repository
- H-1 Root, organization and Identity Center (console)
- H-2 Organization settings (CLI, no CloudFormation resource)
- H-3 Control Tower (master stacks)
- H-4 Workload accounts (repeat per account: shared-services, dev, prod, sandbox)
- H-5 Guardrails and the catalog (master stacks)
- H-6 The management account's own controls
- H-7 Security account
- H-8 Shared Services and the pipeline bootstrap
- H-9 The domain
- H-10 Build-period toggles
- H-11 Delivered by the pipeline (no manual step)
- H-12 Sandbox proofs (Stage 5)
- H-13 Findings review fixes (step 7.2)
- Planned steps and rebuild notes
- Cost
Decisions
- ADR-0001: Write down the reasoning behind every big decision
- ADR-0002: Build everything with AWS's own tool, CloudFormation
- ADR-0003: Build the account setup by hand instead of using Control Tower (superseded)
- ADR-0004: New accounts come from Control Tower, not a custom factory (superseded)
- ADR-0005: Keep checking the account list against reality, not only when it changes
- ADR-0006: No root password in member accounts; root tasks run one at a time
- ADR-0007: Mostly serverless, with servers and networks that run on a schedule
- ADR-0008: A small hardened server for outbound traffic, not AWS's managed gateway
- ADR-0009: Make the audit logs undeletable, gently at first, then for good at go-live
- ADR-0010: Amazon Detective stays off
- ADR-0011: Scan for sensitive data once, not continuously
- ADR-0012: Skip Security Hub's paid NIST 800-53 checks
- ADR-0013: Outside auditors don't see the Sandbox account
- ADR-0014: Keep the code in AWS, with a copy on GitHub (superseded)
- ADR-0015: Replace servers with a freshly built image every week instead of patching them
- ADR-0016: Changes go Sandbox, then Dev, then Prod, and only Sandbox is changed by hand
- ADR-0017: Let the pipeline account manage the organization's guardrail policies
- ADR-0018: Private repository from day one, with checks but no automatic deploys at first
- ADR-0019: Set up Control Tower from code, and manage sign-in ourselves
- ADR-0020: Use Control Tower's built-in audit trail and configuration recording
- ADR-0021: Limit HKB to two AWS Regions using Control Tower's built-in control
- ADR-0022: The code lives on GitHub, and the pipeline reads it from there
- ADR-0023: Fit HKB's guardrails into AWS's five-policy limit
- ADR-0024: The pipeline deploys through CloudFormation's own role in each account
- ADR-0025: Account IDs stay out of the code and are looked up when it deploys
- ADR-0026: Use AWS's public library of template rules, as warnings first
- ADR-0027: Bring the threat detector and Security Hub under code
- ADR-0028: Watch for outside access, but skip the paid unused-access scan
- ADR-0029: Two ways to deploy: organization-wide rollouts, and one account at a time
- ADR-0030: Lock a copy of the audit logs that HKB owns
- ADR-0031: The website is generated from the repository as plain pages
- ADR-0032: HKB's own private network, hardened servers and a start-stop schedule
- ADR-0033: Control Tower runs configuration recording, not HKB
- ADR-0034: Signing the domain (DNSSEC) waits for a later project
- ADR-0035: Every Security Hub finding is fixed, or accepted with a published reason
- ADR-0036: Two permission caps: one for workloads, one for the pipeline
- ADR-0037: Only a person, by hand, changes the management account
- ADR-0038: The site goes live first, behind a minimum security floor
- ADR-0039: The live site launches on its real domain, with its DNS kept in Prod
- ADR-0040: Configuration recording restarts at the end of hardening
- ADR-0041: What the site is for, how it's laid out, and how evidence reaches it
- ADR-0042: A hand-run script switches the threat detector on for every account
- ADR-0043: Separate pipelines for the platform and the website
- ADR-0044: Prod's access logs through CloudFront standard logging v2
- ADR-0045: Sandbox proves the guardrails; the root sign-in check waits for close-out
- ADR-0046: A cost check before the security services, and a spending limit at every stage
- ADR-0047: Wait out AWS's approval delays rather than redesign around them
- ADR-0048: A read-only scanner is the one cross-account trust into the management account
- ADR-0049: The monthly compliance report job gets its own read-only role in every account
- ADR-0050: Drift detection is a monthly hand run
- ADR-0051: Pipeline approvals return after the findings fixes, and notifications stand in for a delay
- ADR-0052: The findings review fixes what the budget allows, and names the cost of the rest
- ADR-0053: Unused VPCs are deleted, and new accounts get none
- Glossary
Page information
- Owner
- Documentation
- Status
- current Current: generated from the templates and records in the repository at this build.
- Generated from
site/content/wiki.md- Linked from
- ISO 27001 Statement of Applicability, SOC 2 view, H-0 Workstation and repository, H-1 Root, organization and Identity Center (console), H-2 Organization settings (CLI, no CloudFormation resource), H-3 Control Tower (master stacks) and 113 more
- Plain markdown
- /wiki/index.md