latest run 54 pass 0 fail 0 skipevidence →
HKB Operations: pages
HKB OperationsKnowledge space

Starred pages

Pages

Page directory · Labels · [ hides this

Architecture

An AWS account is an isolated environment with its own resources and permissions. HKB splits its work across seven accounts, and each one has a single job. One runs the organization, one keeps the logs, one watches for threats and one runs the deployments. The other three run the workloads, this website included.

The seven accounts sit in one AWS Organizations organization, governed by a Control Tower landing zone. Because each account has one job, a mistake or a compromise in one stays there.

The map below shows where each account sits. The buttons above it add one layer at a time: deployments, policies, logs, and threat alerts. Click any account to see what is inside it.

HKB organization mapAWS Organizations: the management account at the root, and five OUs. The Security OU holds Log Archive and Security; the SharedServices OU holds Shared Services; the Workloads OU holds the Prod OU with Prod and the SDLC OU with Dev; the Sandbox OU holds Sandbox; the Suspended OU is empty and denies everything. Views add the CI/CD path, the SCPs and RCPs, logging, and detection and alerting.AWS CloudAWS Organizations · organization rootManagementthe organization's control planeSecurity OULog ArchiveSecuritySharedServices OUShared ServicesWorkloads OUProd OUProdSDLC OUDevSandbox OUSandboxSuspendedOrganizationsControl TowerIdentity CenterOrg trailorganization logsGuardDutysecurity services adminThree pipelinesand StackSetsThis sitehirekylebuhrmann.comSite copypipeline onlyHands-on$30 budgetemptyFive OUs under the organization root: Security, SharedServices, Workloads (with Prod and SDLC), Sandbox and Suspended.One job per account. Choose a view to overlay CI/CD, the policies, logging, or detection and alerting.123hkb-pipeline-site in Shared Services promotes each change: Sandbox (1), Dev (2), Prod (3).hkb-pipeline-main deploys the baseline to every member account through StackSets. The management account changes only by reviewed change sets.Root: SCP-01, 03 to 07 · RCP-01, 02SCPs and RCPs never apply here+ SCP-10SCP-08deny allSCP-09SCP-09SCP-09SCP-09SCP-09SCP-09Policies attach to the root and to OUs, so every account below inherits them. SCP-09 (no root user) is attached to every member account directly.Sandbox adds its own limits. Moving an account into Suspended quarantines it in one step.The Control Tower organization trail delivers CloudTrail from every account to the Log Archive bucket.S3 replication copies each log to a replica bucket under Object Lock, governance mode, 365 days.alert emailGuardDuty and Security Hub in every account, administered from Security as delegated administrator.EventBridge forwards High and Critical findings, root sign-ins and IAM, CloudTrail and GuardDuty changes to hkb-security-events; SNS emails the security mailbox.
Open full sizeClose

Accounts

Account Organizational unit Job
Management root Governs the organization: guardrail policies, account vending, the domain registration. Nothing else runs here.
Log Archive Security Holds the organization's CloudTrail logs, away from the accounts that produce them.
Security Security Delegated administrator for the security services, so they aren't run from the management account.
Shared Services SharedServices Runs the deployment pipelines (platform, site and security tools) and owns the organization-wide StackSets.
Prod Workloads / Prod Serves this site on hirekylebuhrmann.com. Only the pipeline changes it.
Dev Workloads / SDLC A copy of Prod built by the same templates, so a change that works in Dev predicts Prod. Only the pipeline changes it.
Sandbox Sandbox The only account where people make changes by hand, with its own guardrails and a $30 budget.

An empty Suspended OU carries a deny-all policy. Moving an account into it quarantines that account in one step.

Deployment path

Every change starts as a commit and a pull request. Merging to main starts the pipelines whose part of the repository it touches. There are three, all AWS CodePipeline in Shared Services:

  • The platform pipeline validates every template, updates itself, and rolls organization-wide baselines out to every member account through StackSets, plus the Security account's stacks.
  • The site pipeline builds this site and promotes it to Sandbox, then Dev, then Prod. A failure in one environment stops the promotion.
  • The tools pipeline deploys each security tool in tools/ as its own stack in the Security account.

Both validate first: cfn-lint, the HKB CloudFormation Guard rules and their tests, IAM Access Analyzer policy validation, and a secrets scan with gitleaks. Any failure stops the run. The AWS Guard Rules Registry security pillar runs as well, as advice.

The management account is the exception. No pipeline can deploy into it. Its stacks change only through reviewed CloudFormation change sets, run by hand under an admin role that alerts on every use.

Identity and access

There are no IAM users in any account, and in the member accounts a service control policy prevents anyone creating one. People sign in through IAM Identity Center, with short sessions and one permission set per task. Member-account root users have no credentials, and a policy denies root actions in every member account. Automation follows the same rule: one role per function, scoped to its own stacks. The access map shows every person and role, account by account, generated from the templates.

Preventive and detective controls

  • Service control policies on the root and on each OU: no leaving the organization, no disabling security services or logging, no long-lived credentials, no weakening S3 Block Public Access, instance-type limits, and an allowlist for AI services. Control Tower's Region deny control limits regional services to two Regions, us-east-1 and us-west-2.
  • Resource control policies on the root: S3, KMS, Secrets Manager and STS deny anyone outside the organization, and S3, KMS and Secrets Manager deny requests without TLS.
  • An account baseline deployed to every member account: account-level S3 Block Public Access, EBS encryption by default, and an IAM password policy.
  • An organization-wide external-access analyzer in both Regions, which reports any resource shared outside the organization.
  • Alerts in the management account for root sign-in, policy changes, domain changes and use of the admin role.
  • Budgets on the organization and on Sandbox.

Controls lists each one with its policy text and the check that proves it.

Site hosting

The site is static HTML generated from this repository, with no framework and no third-party requests. It's served by CloudFront from an S3 bucket that has Block Public Access, KMS encryption, versioning and a TLS-only policy, and that CloudFront reaches only through an origin access control. Every response carries HSTS, a content security policy that allows only this site's own files, and anti-framing headers.

★ Starred page 1 of 5 · Next: Controls →

Page information

Owner
Platform Engineering
Status
current Current: generated from the templates and records in the repository at this build.
Generated from
site/content/architecture.md, site/aws_diagram.py
Linked from
ISO 27001 Statement of Applicability, As-built record, Management, As-built record, Log Archive, As-built record and 38 more