account
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.
- Site distributionCloudFront and the private bucket: TLS, origin access control, response headers.
- VPCTwo AZs, public and private subnets, one /16 per account, flow logs.
- NAT instanceA Graviton instance in place of a NAT gateway, on a weekday schedule, Session Manager only.
- NAT imageThe NAT's AMI from Image Builder: Amazon Linux 2023, DISA STIG Medium, rebuilt weekly.
- Detection testA monthly job that triggers a GuardDuty finding on a short-lived instance, to prove detection works.
Components
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)HKB-SupportOpen and manage AWS Support cases, nothing elseHKB-SandboxAdminHands-on building and experiments in Sandbox. PowerUser; IAM only for sbx-* roles under hkb-sandbox-boundary.
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.hkb-detection-targetInstance role of the detection test's short-lived instance. SSM's agent and ec2:DescribeInstances.hkb-detection-testService role of the hkb-detection-test job. Starts, commands and ends its own instance in hkb-private-a.hkb-detection-test-scheduleEventBridge Scheduler role. Starts the hkb-detection-test job, nothing else.hkb-events-forwarderEventBridge forwarder. Puts the security events these rules match onto the central bus in Security, and nothing else.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.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.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.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.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.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.hkb-net-image-buildImage Builder build and test instances for the NAT AMI. Systems Manager and Image Builder only.hkb-net-image-lifecycleImage Builder lifecycle policy for the NAT AMI. Deletes images beyond the newest two.hkb-net-natNAT instance. Session Manager and Patch Manager only.hkb-net-nat-schedulerEventBridge Scheduler. Starts and stops the NAT instance on the weekday window.hkb-net-flow-logsVPC Flow Logs delivery to /hkb/network/flow-logs only.
Control test coverage
Cost
$7.30 in 2026-11 to date. Org-wide cost.
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