You're about to create account six. The first five were hardened by hand: some still have a default VPC in a Region nobody uses, EBS encryption by default is on in the home Region only, and the password policy exists in some accounts but not others. Then a customer security questionnaire or a SOC 2 auditor asks how every account is configured.
If you're the platform lead or CTO who owns that answer, you need an AWS account baseline: an AWS security baseline the organization applies to every member account without anyone clicking, the per-account layer of a landing zone. You'll get each control by scope, with the StackSet, construct or policy the AWS CDK Landing Zone applies it with, and see how account six receives it through one reviewed change. Single-account hardening lives in AWS account best practices.
What is an AWS account baseline, and what does it cover?
An AWS account baseline is the set of security and operations settings every account in your organization must have from the moment it exists, applied by automation rather than by hand. Some settings are made once for the organization, some once per account, and some in every account and each Region you have configured.
| Control | Scope | Applied by | Guarded by |
|---|---|---|---|
| Default VPC deleted | Per account, each configured Region | AccountSecurityStackSet | Not by the shipped SCP |
| EBS encryption by default | Per account, each configured Region | AccountSecurityStackSet | criticalSecurityGuardrailsSCP (deny disable) |
| Default security group rules stripped on new VPCs | Per account, each configured Region | AccountSecurityStackSet | Not by the shipped SCP |
| SSM: block public document sharing, automation logs to CloudWatch | Per account, each configured Region | AccountSecurityStackSet | Not by the shipped SCP |
| S3 Block Public Access (all four settings) | Once per account | AccountSecurityStackSet (globalSettingsRegion) | Not by the shipped SCP |
| IAM password policy | Once per account | AccountSecurityStackSet (globalSettingsRegion) | criticalSecurityGuardrailsSCP (deny change or delete) |
| Alternate contacts (security, billing, operations) | Once per account, management included | SetAlternateContactConstruct in LandingZoneOrganizationStack | Not by the shipped SCP; reset when contacts or the account list change |
| Public EBS snapshot and new public AMI sharing blocked | Once for the organization (root) | BlockPublicEc2Sharing declarative policy | Members can't change a managed attribute |
| Organization trail | Once for the organization | ObservabilityStackSet (observability account) | Members can't modify or delete an organization trail |
| Security and operations alerts | Once for the organization | ObservabilityStackSet | n/a |
Scope tells you how often a do-it-yourself script must run each control: once, once per account, or once per account and configured Region. Read the last column as a to-do list: "Not by the shipped SCP" marks a setting a member account administrator can still change. The management account gets every AccountSecurityStackSet row through ProvisionManagementStackSet. If you report against CIS, each control is mapped to the CIS benchmark in the CIS guide.
Why doesn't a baseline applied by hand survive account six?
Region-local settings multiply. EBS encryption by default is a Region-specific account setting, and AWS creates a default VPC in each Region when it creates an account. Take an illustrative organization of six accounts using three Regions: that is 18 places where EBS encryption by default must be on and 18 default VPCs to remove. Enable a fourth Region next year and you revisit all six accounts.
The management account is the one I'd expect to be skipped, because it doesn't feel like a workload account. And a runbook leaves no record. When the auditor asks how account four was configured, the evidence is a wiki page and someone's memory.
A script or a hand-written StackSet can cover all of this, and for a small organization that is a legitimate choice, provided it reaches every scope and the management account. Before you automate anything, find what your first five accounts are missing with CLI checks you can run today.
What every account gets in each configured Region
AccountSecurityStackSet composes SecureDefaultsConstruct and targets the root OU, so it reaches every member account. It deploys to the primary Region plus each entry in secondaryRegions from landing-zone-settings.ts (at most 15 Regions) and leaves any Region outside that list untouched.
Delete the default VPC (and get one back if you need it)
DeleteDefaultVPCConstruct runs a custom resource on stack create and update. In each configured Region it detaches and deletes the default VPC's internet gateways, then deletes its subnets, non-main route tables, non-default network ACLs and non-default security groups, and finally the VPC. Every workload then lands in a network someone designed.
It never force-deletes workloads. AWS won't delete a VPC or a subnet while something depends on it, such as an EC2 instance, so the custom resource reports the error and that account's stack instance fails. It isn't all-or-nothing, though: it keeps removing what it can, so the internet gateway, empty subnets and unused security groups may already be gone. I'd treat that failure as a finding: something runs in a network nobody planned.
Deleted it and need one back? AWS can't restore the old one, but you can create a new default VPC:
aws ec2 create-default-vpc --region eu-west-1
The new default VPC gets a /16 CIDR and a default subnet in each Availability Zone, though a subnet range may map to a different zone than before. A Region holds one default VPC at a time. Removing the StackSet doesn't recreate anything, because on stack delete the construct does nothing.
Turn on EBS encryption by default in every configured Region
Turning the setting on in eu-west-1 does nothing for eu-central-1, so EnableEbsEncryptionConstruct calls EnableEbsEncryptionByDefault in each configured Region. Existing volumes and snapshots stay as they are; new volumes and snapshot copies are encrypted. AWS supports it on all current and previous generation instance types. Unless you set a default customer managed key with aws ec2 modify-ebs-default-kms-key-id, volumes use the AWS managed aws/ebs key, and a snapshot encrypted with it can't be shared with another account until you associate a customer managed key. Set your own key if accounts share snapshots or AMIs.
Verify per Region and look for "EbsEncryptionByDefault": true in the output:
aws ec2 get-ebs-encryption-by-default --region eu-west-1
The usual mistake is flipping the console toggle in the home Region and calling it done.
Strip the default security group and lock down SSM sharing
Every VPC has a default security group you can empty but never delete, and resources launched without a security group land in it. An EventBridge rule on the CloudTrail CreateVpc event triggers a Lambda function that removes every inbound and outbound rule from the default group of each newly created VPC. VPCs that predate the baseline need a review of their own.
Blocking public sharing of SSM documents is a per-Region setting that is off by default, and ConfigureSsmServiceSettingsConstruct turns it on. Blocking doesn't unshare documents already public. The construct also sends Automation script output to CloudWatch Logs.
What every account gets once: S3 Block Public Access, password policy, alternate contacts
AccountSecurityStackSet writes the next two settings only in the one Region set as globalSettingsRegion, so each lands once per account. Alternate contacts come from the organization stack itself.
S3 Block Public Access
Each account gets all four account-level settings from S3BlockPublicAccessConstruct: BlockPublicAcls, IgnorePublicAcls, BlockPublicPolicy and RestrictPublicBuckets. Since November 26, 2025, an Organizations S3 policy can also enforce Block Public Access from the root or an OU, overriding the account-level settings while attached. If you adopt it, pick one owner for the setting.
IAM password policy
The IAM account password policy that SetAccountPasswordPolicyConstruct writes asks for an 18-character minimum and a 90-day maximum age. It blocks reuse of the last 24 passwords, the most AWS allows, requires upper and lowercase letters, numbers and symbols, and lets users change their own password. The policy applies to IAM users only, never the root user. With the root SCP denying new IAM users in member accounts, it's a backstop for users that predate the baseline and for the management account.
Alternate contacts
SetAlternateContactConstruct in LandingZoneOrganizationStack calls PutAlternateContact to set security, billing and operations contacts on every active account, the management account included. It re-runs when the contact details or the account list change, so a new account gets its contacts in the deploy that creates it. Managing alternate contacts for member accounts from the management account requires trusted access for AWS Account Management. In the same pass, UnsubscribeMarketingMailsConstruct opts each account out of AWS marketing email.
What the organization sets once: the organization trail and alerts
ObservabilityStackSet deploys to the observability account in the primary Region. That account is the delegated administrator for CloudTrail and AWS User Notifications, which means Organizations lets it manage both services for every account. It creates one organization trail covering every account, the management account included:
- Multi-Region, with log file validation and global service events
- Logs encrypted with a rotating KMS key, delivered to a log bucket with a separate S3 access-log bucket
- An Athena
cloudtrail_logstable for queries - Retention of 365 days by default, set through
auditLogRetention
There are no per-account trails to maintain. An organization trail also reaches accounts that join later, and member accounts can see it but can't stop, delete or modify it.
The same StackSet sets up alerts through AWS User Notifications. The security contact gets email for high and critical GuardDuty, Inspector and Macie findings, every root user sign-in (failed ones included), and every successful IAM user sign-in without MFA. The operations contact gets CloudWatch alarms entering ALARM and failed CloudFormation stack operations. Both cover accounts created later.
Nothing arrives until each address is verified. AWS sends a verification email to every new address and doesn't deliver to a pending one, so confirm both the day you deploy. Two limits remain: the trail delivers to S3 only, and nothing alerts you when someone with access to the management or observability account stops the trail or deletes its KMS key.
How does account six receive the baseline?
Account six becomes a pull request instead of a console session.
-
Add an entry to the target OU's
accountsmap insrc/config/organization-structure.ts, with a display name and an email no AWS account has used before:ProductionOU: { name: 'workload-prod-ou', accounts: { PaymentsAccount: { name: 'Payments', email: 'aws+payments-prod@example.com', }, }, }, -
Open a pull request.
pnpm run organization:diffshows a newAWS::Organizations::Accountresource inLandingZoneOrganizationStack, and that diff is what your reviewer approves. -
Merge.
pnpm run organization:deploy, or the generated GitHub Actions workflow, creates the account and moves it into the OU. Alternate contacts are applied in the same deploy. -
The service-managed StackSets, which CloudFormation deploys through Organizations to the OUs they target, deploy their stack instances to the new account. The landing zone phase doesn't need to run again for it.
-
Verify. In the landing zone account's CloudFormation console under StackSets, filter AccountSecurityStackSet's stack instances by the new account ID. Every configured Region should have one, each reaching
CURRENT, which AWS defines as up to date with the StackSet.
Service-managed StackSets with automatic deployment follow accounts into the OUs they target; see how service-managed StackSets follow accounts for the permission models. They never deploy to the management account, so ProvisionManagementStackSet, a self-managed StackSet that uses IAM roles created in the target account, applies the same SecureDefaultsConstruct there in every configured Region.
Placement matters because the OU decides which StackSets an account receives, though AccountSecurityStackSet reaches every member account either way. Account creation itself is covered in how accounts are created and closed. If you invite an existing account instead, check its default VPCs first. The add-an-account guide and the StackSets reference have the details.
A per-account script must run again in every account when you add a Region. Here, adding a Region is a secondaryRegions change reviewed in its own diff, and both AccountSecurityStackSet and ProvisionManagementStackSet deploy to the updated list (changing Regions).
Excalidraw diagram loading.
How do you stop member accounts from undoing the baseline?
A member account administrator with the right IAM permissions could turn EBS encryption by default off next week. criticalSecurityGuardrailsSCP, attached at the root, denies that, along with changing or deleting the account password policy, leaving the organization, and creating IAM users and access keys. The password-policy deny exempts landing-zone administration roles and the external administrators you configure. For how a deny combines with IAM permissions, read how SCP evaluation works.
The BlockPublicEc2Sharing declarative policy works differently: it sets the configuration inside EC2 instead of denying API calls. It blocks all public sharing of EBS snapshots, treating already-public ones as private, and blocks new public sharing of AMIs. An AMI that is already public stays public until you unshare it. Member account administrators can't change an attribute the policy manages.
Plan for two gaps. SCPs don't affect the management account, so keep access to it narrow. And the shipped SCP doesn't stop a member admin from creating a new default VPC; if that matters, add your own SCP.
Where the AWS account baseline stops, and which approach fits your team
The baseline is deliberately narrow. It doesn't include:
- Shared networking or VPC design. Deleting the default VPC only forces you to design one.
- VPC Block Public Access, which stays off unless you add it as a declarative policy, because it can cut internet access for every VPC without an exclusion.
- IAM Identity Center, which you set up separately from the per-account baseline.
- Root credentials: OrganizationSecurityStackSet turns on IAM centralized root access for member accounts once from the security account, and the CIS guide covers the rest.
A script or hand-written StackSet fits a handful of accounts in one Region, as long as someone owns re-running it after every change. The landing zone baseline fits when accounts and Regions keep growing and every baseline change should arrive as a reviewed diff. It assumes your team is comfortable reviewing CDK and TypeScript changes in pull requests.
AWS Control Tower deletes the default VPC in its governed Regions only for accounts created from its console, not in existing or enrolled accounts. Account Factory for Terraform runs a customization pipeline per account in Terraform, Python or bash scripts, or the AWS CLI, which suits teams already standardized on Terraform.
Your next step for account six
- An AWS account baseline has three scopes: the organization, each account, and each account in every configured Region.
- Region-local settings fail quietly in the Region you forgot.
- Service-managed StackSets and SCPs both skip the management account, so it needs its own path.
- An SCP keeps EBS encryption and the password policy on; a declarative policy blocks public snapshot and new AMI sharing.
Before you create account six, run these checks for each of the first five accounts in every Region it uses, swapping in that account's CLI profile, and write down every gap:
aws ec2 get-ebs-encryption-by-default --profile account-one --region eu-west-1
aws ec2 describe-vpcs --filters Name=is-default,Values=true --profile account-one --region eu-west-1
That list shows how much a script would have to cover, and whether you'd rather review the fix as a pull request. Then read the multi-account strategy the baseline sits in.
Next step