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

Starred pages

Pages

Page directory · Labels · [ hides this

account root / SharedServices OU

Shared Services

Shared Services runs the deployment pipelines and owns the organization-wide StackSets. The platform pipeline rolls baselines out to every member account, the site pipeline builds and deploys this website, and the tools pipeline deploys the security tools into Security.

Every change is linted, policy-checked, tested against the HKB Guard rules and scanned for secrets before anything deploys. The pipelines reach member accounts only through roles built for each job, and they can't reach the management account.

Pipelines and StackSets

Each has its own page, with its configuration as deployed.

Components

Shared Services account diagramThe Shared Services account in the AWS Cloud. A merge on GitHub reaches CodeConnections, which starts the pipelines whose paths it touches: platform, site and tools. CodeBuild validates every change. The pipeline foundation holds the artifact bucket, its KMS key and the alert topic. StackSets deploy the baseline to every member account. The pipelines assume roles in Security and the workload accounts, and the tools pipeline deploys each tool as its own stack in Security.AWS CloudShared Services · hkb-shared-servicesroot / SharedServices OUGlobal servicesAlso in this account, not drawnus-east-1 · home RegionCodePipeline · hkb-pipeline-main (platform)CodePipeline · hkb-pipeline-site (site and workloads)CodePipeline · hkb-pipeline-tools (security tools)BuildPipeline foundation · applied by handCloudFormation StackSets · delegated administratorSecurity baselineSecurityWorkload accountsSandboxDevProdAll member accountsLog ArchiveGitHubmerged PRsIAM roles9 pipeline rolesEvery pipeline role carriesthe hkb-pipeline-boundary.Identity Center permission setsCodeBuild site-sync projectEventBridge pipeline rulesCloudWatch Logs for buildsAccount-settings LambdaSecurity Hub and Configus-west-2: event forwardersCodeConnectionshkb-githubSourceValidateSelf-updateStackSetsSecurityNet · SandboxNet · DevNet · ProdSourceValidateSandboxDevProdSourceValidateProwlerCodeBuildchecks every changeArtifact bucketversionedKMS keyalias/hkb-pipelineSNS topicrun alerts by emailParameter Store/hkb/ catalog sourceStackSets10 setsBaseline to every member account: accountsettings, IAM roles, event forwarders and the/hkb/ catalog. Network roles to the workloadOUs, and the spend cutoff to Prod.CloudTrailorg trailGuardDutythreat detectionEventBridge rulesforward eventssecurity events stacktargets come from OUsorg trailLegend1Request or run orderRequest / dataDeploy (assumes a role)Event / logAttached / governsBlueOpens its pagemerge123encryptsassume role4network rolessite rolesbaselinetrailtool stacks
Shared Services account diagramOpen full sizeClose

The numbers trace one change: a merge reaches CodeConnections, which starts the pipeline whose paths it touches; CodeBuild checks every template first; then each stage assumes a role in the account it changes. StackSets carry the baseline to every member account.

Preventive controls

9 SCPs and RCPs apply, inherited through the OU path.

  • SCP-01Deny leaving the org, closing accounts and changing account contact or billing settingsPASS
  • SCP-03Protect the security baseline: no stopping or deleting CloudTrail, Config, GuardDuty, Security Hub or Access Analyzer; hkb-baseline-* roles and stacks changed only by the StackSets execution role; IMDSv2 required at launch, with no switching back afterwardsPASS
  • SCP-04No long-lived credentials: no IAM users, access keys or console passwordsPASS
  • SCP-05Data protection: account-level S3 Block Public Access can't be weakened; KMS keys are deleted only by the pipeline and AWS-managed deployment rolesPASS
  • SCP-06AI allowlist: Bedrock only in the Workloads and Sandbox OUs, approved models only, no provisioned throughput or customizationPASS
  • SCP-07Cost guardrails: EC2 and NAT only in Workloads and Sandbox, instance-type allowlist, no OpenSearch Serverless, reserved purchases or Marketplace subscriptionsPASS
  • SCP-09Deny all root-user actions except task-scoped root sessionsPASS
  • RCP-01Data perimeter: S3, KMS, Secrets Manager and STS deny principals outside the org; AWS service principals exemptPASS
  • RCP-02Deny non-TLS requests to S3, KMS and Secrets ManagerPASS

Principals

0 IAM users. 3 Identity Center permission sets, 12 IAM roles, parsed from the templates. Org-wide view: access matrix.

Permission sets

  • HKB-ReadOnlyDaily visibility (ViewOnlyAccess and SecurityAudit, plus the reads the verifier and change-set reviews need)8 h sessions
  • HKB-SupportOpen and manage AWS Support cases, nothing else1 h sessions
  • HKB-PipelineApproverApprove or reject the pipeline's manual approvals and read its state and change records. No edit rights.4 h sessions

IAM roles

  • hkb-baseline-account-settingsExecution role of the hkb-baseline-account-settings function. Sets EBS default encryption, the IAM password policy, two Systems Manager settings and VPC Block Public Access, nothing else.boundary hkb-pipeline-boundary
  • hkb-events-forwarderEventBridge forwarder. Puts the security events these rules match onto the central bus in Security, and nothing else.boundary hkb-pipeline-boundary
  • hkb-scannerProwler's read-only scanner role. Taken on only by hkb-tool-prowler in Security; reads the account and imports failed findings to Security Hub.boundary hkb-scanner-boundary
  • hkb-pipeline-orchestratorCodePipeline service role for hkb-pipeline-main (platform). Moves artifacts, starts the Validate build, assumes the platform action roles. Deploys nothing itself.boundary hkb-pipeline-boundary
  • hkb-pipeline-site-orchestratorCodePipeline service role for hkb-pipeline-site. Moves artifacts, starts the Validate and site-sync builds, assumes hkb-pipeline-site in Sandbox, Dev and Prod. Deploys nothing itself.boundary hkb-pipeline-boundary
  • hkb-pipeline-tools-orchestratorCodePipeline service role for hkb-pipeline-tools. Moves artifacts, starts the Validate build, assumes hkb-pipeline-tools in Security. Deploys nothing itself.boundary hkb-pipeline-boundary
  • hkb-pipeline-validateCodeBuild role for the Validate stage. Reads artifacts and validates policies. Cannot assume any deployer role.boundary hkb-pipeline-boundary
  • hkb-pipeline-syncCodeBuild role for the site sync (step 4.4, DQ-59). Reads the built site artifact and assumes hkb-pipeline-site-sync in Sandbox, Dev and Prod. Changes nothing in this account.boundary hkb-pipeline-boundary
  • hkb-pipeline-selfSelf-update action role. Makes change sets on the hkb-pipeline stack and passes hkb-pipeline-cfn-self to CloudFormation. Changes nothing itself.boundary hkb-pipeline-boundary
  • hkb-pipeline-cfn-selfCloudFormation service role for the hkb-pipeline stack (pipeline and CodeBuild projects). Cannot edit IAM, the key, the bucket or this stack.boundary hkb-pipeline-boundary
  • hkb-pipeline-stacksetsStackSets action role. Makes change sets on hkb-stacksets-* stacks (which own service-managed StackSets) and passes hkb-pipeline-cfn-stacksets to CloudFormation.boundary hkb-pipeline-boundary
  • hkb-pipeline-cfn-stacksetsCloudFormation service role for hkb-stacksets-* stacks. Manages hkb-* service-managed StackSets as StackSets delegated administrator; no IAM or Organizations write access.boundary hkb-pipeline-boundary

Control test coverage

Cost

$17.70 in 2026-11 to date. Org-wide cost.

As-built record: the account's scope and current state, as kept in the repository.

Sources: D42, DQ-157, DQ-79, DQ-130

Page information

Owner
Platform Engineering
Status
current Current: generated from the templates and records in the repository at this build.
Generated from
site/content/accounts.md, HKB Shared Services Account.md
Linked from
Architecture, Management, Log Archive, Security, As-built record, Prod and 34 more