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

Starred pages

Pages

Page directory · Labels · [ hides this

account root / Sandbox OU

Sandbox

Sandbox is the only account where people make changes by hand. It has its own guardrails on top of the organization's (SCP-10) and a $30 monthly budget.

Every site change deploys here first, before Dev and Prod.

Site, network and tests

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

Components

Sandbox account diagramThe Sandbox account in the AWS Cloud. Global services: CloudFront on its default domain with noindex, and the pipeline's deploy roles. In us-east-1: the site origin (S3 bucket, KMS key), the security baseline, and a VPC across two Availability Zones with a NAT instance that runs on weekdays. People sign in with HKB-SandboxAdmin, inside SCP-10 and a $30 budget. A monthly GuardDuty detection test runs in private subnet A. Shared Services, Security, Log Archive and Management sit outside the account.AWS CloudSandbox · hkb-sandboxroot / Sandbox OUGlobal servicesus-east-1 · home RegionSite originNAT schedule and patchingSecurity baselineVPC · 10.10.0.0/16Availability Zone AAvailability Zone BPublic subnet10.10.0.0/24Public subnet10.10.1.0/24Private subnet10.10.2.0/24Private subnet10.10.3.0/24Also in this account, not drawnShared ServicesSecurityLog ArchiveManagementKyleIdentity CenterCloudFrontdefault domain, noindexHKB-SandboxAdminPowerUser, sbx-* boundaryAWS Budgets$30 a monthDeploy roles, assumed by the site pipelinehkb-pipeline-sitedeploy actionhkb-pipeline-cfn-siteCloudFormationhkb-pipeline-site-syncuploads filesKMS keyalias/hkb-siteS3 bucketprivate, versionedSchedulerweekdays 07:00-19:00Patch Managerscans the NATCloudTrailorg trailGuardDutythreat detectionEventBridge rulesforward eventsInternet gatewayNAT instancet4g.micro, outbound onlyNo hostsDetection test, monthlyproofs run here tooNo workloads yetCloudFront Function, headers policyPermission boundariesParameter Store /hkb/ catalogAccount-settings LambdaSecurity Hub and ConfigElastic IP, VPC flow logsImage Builderus-west-2: event forwarders, EBS default encryptionCodePipelinesite + StackSetsEvent busalerts by emailS3 bucketorg trailOrganizationsSCPs, SCP-10 hereLegend1Request or run orderRequest / dataDeploy (assumes a role)Event / logAttached / governsBlueOpens its pageHTTPS1via OAC23signs inassume rolefilesStackSetssecurity eventstrailstarts, stopsSCPs
Sandbox account diagramOpen full sizeClose

The numbers trace one page request, as in Dev and Prod. Sandbox is the only account where people make changes by hand, as HKB-SandboxAdmin, inside SCP-10 and a $30 budget, and it gets every change first.

Preventive controls

10 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
  • SCP-10Sandbox isolation: no peering, Transit Gateway or resource shares, no roles in other accounts, no public IPs, Elastic IPs or internet-facing load balancers, narrow instance allowlistPASS
  • 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, 16 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-SandboxAdminHands-on building and experiments in Sandbox. PowerUser; IAM only for sbx-* roles under hkb-sandbox-boundary.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-detection-targetInstance role of the detection test's short-lived instance. SSM's agent and ec2:DescribeInstances.boundary hkb-workload-boundary
  • hkb-detection-testService role of the hkb-detection-test job. Starts, commands and ends its own instance in hkb-private-a.boundary hkb-detection-boundary
  • hkb-detection-test-scheduleEventBridge Scheduler role. Starts the hkb-detection-test job, 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-pipeline-siteSite deploy action role. Makes change sets on the hkb-site and hkb-dns stacks and passes hkb-pipeline-cfn-site. Content goes through hkb-pipeline-site-sync.boundary hkb-pipeline-boundary
  • hkb-pipeline-site-syncSite content role (step 4.4, DQ-59). Reads the hkb-site stack outputs, syncs the built site to the site bucket and clears the CloudFront cache. No CloudFormation changes, no IAM.boundary hkb-pipeline-boundary
  • hkb-pipeline-cfn-siteCloudFormation service role for the hkb-site and hkb-dns stacks. Site bucket, its KMS key, CloudFront, the hosted zone and the certificate; no IAM.boundary hkb-pipeline-boundary
  • hkb-pipeline-networkNetwork deploy action role. Makes change sets on the hkb-vpc, hkb-image and hkb-network stacks and passes hkb-pipeline-cfn-network. Changes nothing itself.boundary hkb-network-boundary
  • hkb-pipeline-cfn-networkCloudFormation service role for the hkb-vpc, hkb-image and hkb-network stacks. VPC, NAT instance, Elastic IP, Image Builder, schedules, Patch Manager; roles only as hkb-net-* under hkb-workload-boundary.boundary hkb-network-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-net-image-buildImage Builder build and test instances for the NAT AMI. Systems Manager and Image Builder only.boundary hkb-workload-boundary
  • hkb-net-image-lifecycleImage Builder lifecycle policy for the NAT AMI. Deletes images beyond the newest two.boundary hkb-workload-boundary
  • hkb-net-natNAT instance. Session Manager and Patch Manager only.boundary hkb-workload-boundary
  • hkb-net-nat-schedulerEventBridge Scheduler. Starts and stops the NAT instance on the weekday window.boundary hkb-workload-boundary
  • hkb-net-flow-logsVPC Flow Logs delivery to /hkb/network/flow-logs only.boundary hkb-workload-boundary

Control test coverage

Cost

$7.30 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-110, DQ-130, D19

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 Sandbox Account.md
Linked from
Architecture, Management, Shared Services, As-built record, GuardDuty, Security Hub CSPM and 40 more