# Wiki

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](/architecture/) and its account pages, then the [rebuild guide](/wiki/rebuild/), which lists every step the pipelines can't take, with the command and the check for each. The [policy catalog](/wiki/policies/) shows each guardrail statement as deployed.

**Security analysts.** Start with [access](/access/): every permission set and machine role, by account, with its boundary. The [roles](/wiki/roles/) pages show each one's trust and policy text as deployed. Then the [policy catalog](/wiki/policies/), the [controls](/controls/) and their latest [evidence](/evidence/). The [Security account](/architecture/security/) page covers GuardDuty, Security Hub and where alerts go, and the [runbooks](/wiki/runbooks/) say what to do when each alert arrives.

**Managers.** Start with [cost](/cost/), then the [decisions](/decisions/), which record what was chosen, what was rejected and why. The [controls](/controls/) page shows how each rule is enforced and tested.

> [!INFO]
> For AI agents, [/llms.txt](/llms.txt) lists these pages in reading order, and each wiki page has a plain-markdown copy at `index.md`.

## Scope

> [!NOTE]
> This 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.

## Find your way

| If you want to | Read |
| --- | --- |
| The organization, its accounts and how changes reach them | [Architecture](/architecture/) |
| Every manual step, in order, with the check that proves it | [Rebuild from zero](/wiki/rebuild/) |
| Every organization policy statement, as deployed | [Policy catalog](/wiki/policies/) |
| Every Guard rule the templates must pass, with its text | [Template rules](/wiki/guard/) |
| Each control and the ISO 27001, SOC 2 and other framework controls it maps to | [Standards per control](/controls/frameworks/) |
| Incident response runbooks per alert, and what is not alerted, by design | [Runbooks](/wiki/runbooks/) |
| Root, policy, Identity Center and admin-use alerts | [Management account alerts](/wiki/runbooks/management/) |
| Root, IAM, CloudTrail and GuardDuty events | [Member account security events](/wiki/runbooks/members/) |
| Failed runs and approvals | [Pipeline events](/wiki/runbooks/pipeline/) |
| Budgets and cost anomalies | [Cost alerts](/wiki/runbooks/cost/) |
| Every permission set and machine role, by account | [Access](/access/) |
| Each permission set in full, and every role's trust and boundary | [Roles](/wiki/roles/) |
| Each Identity Center permission set, one page each | [Permission sets](/wiki/roles/people/) |
| The pipelines' IAM roles in Shared Services, in full | [Pipeline roles](/wiki/roles/pipeline/) |
| The main pipeline's network stages and the NAT tier's roles, in full | [Network roles](/wiki/roles/network/) |
| The tools deploy roles and Prowler's scanner, in full | [Security tooling roles](/wiki/roles/tools/) |
| The Prod site's cost cutoff and daily traffic job roles, in full | [Site roles](/wiki/roles/site/) |
| The other IAM roles, in full | [Member and management roles](/wiki/roles/machines/) |
| Each control, its policy text and the check that proves it | [Controls](/controls/) |
| How the controls line up against ISO 27001 and SOC 2 | [Compliance](/compliance/) |
| All 93 Annex A controls, classed | [ISO 27001 Statement of Applicability](/compliance/iso-27001/) |
| The Trust Services Criteria, criterion by criterion | [SOC 2 view](/compliance/soc-2/) |
| What HKB doesn't meet yet, and what will close it | [Gaps and planned work](/compliance/gaps/) |
| Every open Security Hub finding, remediated or risk-accepted with its reason | [Findings review](/compliance/findings/) |
| The open items as a matrix against the planned work | [Gap map](/compliance/gap-map/) |
| Prowler's latest run against all seven accounts, and the framework summary | [Scans](/compliance/scans/) |
| OWASP, CIS, NIST CSF, ATT&CK, Well-Architected and the AI frameworks | [Standards](/standards/) |
| The latest read-only control test run | [Evidence](/evidence/) |
| Spend by month, account and component, budgets and limits | [Cost](/cost/) |
| Architecture decision records | [Decisions](/decisions/) |
| What may be shown to whom, and how each tier is enforced | [Data classification standard](/wiki/classification/) |
| What the access log holds, for how long, and who can read it | [Privacy notice](/wiki/privacy/) |
| Incidents, alerts, changes, decisions, stories and risks as tickets | [Service desk](/tickets/) |
| The terms these pages use | [Glossary](/wiki/glossary/) |
