Many AWS security incidents don't start with sophisticated attacks. They start with basic account misconfigurations: root users without MFA, overly permissive IAM policies, disabled CloudTrail logging, or forgotten access keys leaked on GitHub.
AWS account security is foundational, whether you're running a single account or orchestrating hundreds.
Below are the security fundamentals that protect every AWS account. You'll learn account setup and naming, root user security, IAM best practices, logging and monitoring essentials, cost management foundations, and a decision framework for when to move from single-account to multi-account architecture.
For teams already scaling beyond a single account, we cover multi-account architecture, AWS Organizations, Service Control Policies, and landing zones in our companion guide: AWS Multi-Account Best Practices. Start here first to ensure you've mastered the fundamentals.
Understanding AWS Account Fundamentals
Every security decision builds on what an account is and how accounts are structured.
What Is an AWS Account?
An AWS account is your business relationship with AWS. It provides identity management, resource isolation, and billing boundaries.
Each account has a unique 12-digit identifier. This ID appears in ARNs (Amazon Resource Names), IAM policies, and cross-account configurations. You'll reference it constantly.
Every account starts with a root user, tied to the email address you used during account creation. The root user has unrestricted access to everything in the account, including billing, and you can't attach IAM identity policies to it. Service control policies (SCPs) and resource control policies (RCPs) restrict member-account root users; the management account's root user sits outside SCPs. That makes root user security critical.
Beyond the root user, people sign in as IAM users with long-term credentials or, preferably, through federated access with temporary credentials from an identity provider like Okta or Google Workspace.
Service quotas (formerly called limits) apply per account, and many also per Region. Some can be raised on request; others are fixed. Once you scale, quota management becomes part of account design.
Why Account Architecture Matters
Your AWS account structure determines security boundaries, cost allocation, compliance scope, and operational complexity.
Security isolation is the primary driver. An account is a hard security boundary, so an attacker inside your development account doesn't automatically reach production.
Cost allocation is simpler with account separation. Costs land per account, which is cleaner than relying on tags alone to attribute spend.
Compliance enforcement gets easier with workload isolation. Keeping regulated workloads in their own accounts makes audit scope much easier to define.
Service quotas apply per account, so hitting a limit in one account doesn't block another.
Every extra account also adds operational overhead, so the single vs. multi-account decision framework below weighs when that trade pays off.
Your Single-Account Security Roadmap
Whether you run a single AWS account temporarily or long-term, five security areas protect it:
Root User Security is your foundation. Compromise here means complete account takeover. You'll implement hardware MFA, delete access keys, use group email addresses, and set up monitoring for any root activity.
IAM and Access Management controls who can do what in your account. You'll migrate from long-term IAM users to federated access, implement least privilege policies, require MFA for all human access, and use permission boundaries for safe delegation.
Logging and Monitoring provides visibility into everything happening in your account. CloudTrail records API activity. Config tracks resource configurations and compliance. Security Hub aggregates findings. GuardDuty detects threats.
Cost Management prevents financial surprises. You'll set up budgets with alerts, enable cost anomaly detection, implement comprehensive tagging for cost allocation, and identify quick optimization wins like unused resources and lifecycle policies.
Architectural Decisions determine when single-account architecture still makes sense and when it's time to scale to multi-account.
Before any of that, the account itself needs a few settings that get harder to change once people depend on them.
AWS Account Setup Best Practices: The First-Day Checklist
AWS account setup best practices come down to order. Choose the root email and account name first, then turn on root MFA, add alternate contacts, create an admin path that isn't root, and finish with a CloudTrail trail and a budget before anyone deploys a workload.
That order is my recommendation, not an official AWS checklist. AWS's own setup guidance covers the middle of it: secure root with MFA, enable IAM Identity Center with an administrative user, then sign in as that user.
- Root email and account name, using the naming rules below.
- Root MFA. Every account that keeps root credentials requires it, and AWS gives you 14 days from your first console sign-in attempt to register it. Member accounts created without root credentials have nothing to enroll.
- Alternate contacts for billing, operations, and security.
- A non-root admin path through IAM Identity Center or an IAM role.
- A multi-Region trail. CloudTrail event history is on by default but keeps only 90 days of management events per Region.
- A budget with alerts. Monitoring and notifications are free, as are the first two action-enabled budgets each month.
Once you run more than a few accounts, stop repeating this by hand: an AWS account baseline gives every new member account its alternate contacts, organization trail, and guardrails automatically.
AWS Account Name Best Practices
Name accounts for their function and environment, not for people or a project that ends next quarter. People leave; the workload in payments-prod stays. AWS's guidance for member accounts points the same way: a naming structure and root email that reflect how the account is used (its example pairs WorkloadsFooADev with Workloads+fooA+dev@domain.com), plus tags for usage, cost center, environment, and project.
Any naming convention has to fit the API limits:
- Account name: 1 to 50 printable ASCII characters. The rename API also rejects
<and>, so avoid them. - Root email: 6 to 64 characters, not already associated with another AWS account. Plus addressing works because
+is allowed, so one group mailbox can serve every account if your mail provider supports it. When you create accounts in AWS Organizations, check the address twice: you can't access the root user of an account created with an invalid email, or remove that account.
| Account name | Root email | What it holds |
|---|---|---|
payments-prod | aws+payments-prod@example.com | Production payments workload |
payments-dev | aws+payments-dev@example.com | Development for the same workload |
security-tooling | aws+security-tooling@example.com | Security services and findings |
log-archive | aws+log-archive@example.com | Central CloudTrail and Config logs |
sandbox-01 | aws+sandbox-01@example.com | Experiments, cleaned up and reused |
The AWS CDK Landing Zone's starter configuration derives most account emails with the same pattern (aws+<account>@<mailDomain>) from one mail domain setting, while account names stay plain strings you choose.
The name shows in the console navigation bar, on billing documents, and in the Organizations hierarchy, and it's easy to change. PutAccountName needs no root credentials: a principal with account:PutAccountName can rename its own account, and the management account or the Account Management delegated administrator can rename members once the organization has all features and trusted access for AWS Account Management turned on. The sign-in alias doesn't change. Scripts, dashboards, and cost reports keyed on the old name are yours to update. To check an account's current name, see how to find an account's name and ID.
Contacts, Alias, and First Admin Path
A name tells people what the account is for; alternate contacts tell AWS who to reach. Set one each for Billing, Operations, and Security, pointed at company distribution lists rather than individuals. In an organization, the management account or a delegated administrator can set them centrally, with the same all-features and trusted-access prerequisites.
An account alias puts a readable name in the IAM sign-in URL in place of the 12-digit ID. It takes 3 to 63 lowercase letters, digits, and hyphens, can't start or end with a hyphen or contain two in a row, must be unique within the partition, and is public, so keep sensitive details out of it.
Then create the first admin path that isn't root: IAM Identity Center for an organization, or an IAM role with temporary credentials for a standalone account. If you run AWS Organizations, also turn on root access management, covered in the root section below.
Root User Security Best Practices
The root user has unrestricted access to everything in the account, so protecting it comes first.
Why Root User Security Is Critical
Root access covers all resources, billing information, and closing the account.
IAM identity policies don't apply to the root user. SCPs and RCPs do reach member-account root users, and AWS recommends attaching an SCP at the organization root that denies root actions there. With centralized root access, add a "Null": {"aws:AssumedRoot": "true"} condition so the deny spares task-scoped root sessions. Inside the management account, neither policy type restricts its root user.
If someone gains access to your root user credentials, they have complete control. They can:
- Delete resources, including backups that aren't under a compliance-mode lock
- Modify billing information and payment methods
- Create administrator-level IAM users
- Disable CloudTrail logging and security controls
- Close the account entirely
The security model is clear: the root user should be "break glass" access only, used exclusively for the handful of tasks that require root credentials.
Tasks that require root user access:
- Closing a standalone AWS account (member accounts can be closed from the management account)
- Changing a standalone account's root email address or root password
- Modifying certain billing and payment settings
- Restoring IAM permissions if you've accidentally locked yourself out
For a complete list of tasks requiring root user credentials, see the AWS documentation on root user tasks. Everything else belongs to IAM roles or federated access.
Essential Root User Protection Measures
Enable hardware MFA on the root user. Virtual MFA apps (like Google Authenticator) are better than nothing, but hardware tokens are stronger. YubiKey or other FIDO security keys provide phishing-resistant authentication.
Never create access keys for the root user. Access keys provide programmatic access to AWS. For CI/CD pipelines, use GitHub OIDC with temporary credentials instead of long-lived access keys. Root user access keys mean unrestricted API access with long-term credentials. If these leak (and credentials leak constantly on GitHub), your entire account is compromised. Delete any existing root access keys immediately.
Use corporate group email addresses for the root user email, not individual addresses. Use aws-root@example.com or security@example.com, managed by multiple team members. If the root user email is tied to an employee who leaves, you lose access to password resets and account recovery.
Turn on centralized root access management if you run AWS Organizations. Available in IAM since November 2024, it lets the management account or a delegated administrator remove the root password, access keys, signing certificates, and MFA devices from member accounts, and new member accounts are created without root credentials. For some root-only tasks, such as unlocking a misconfigured S3 bucket policy, an administrator starts a short, task-scoped root session with sts:AssumeRoot instead of signing in. The management account's own root user isn't covered, so it still needs MFA and a group email.
Create CloudWatch alarms for root user activity. Any root user API call should trigger an immediate alert. This detects unauthorized access and reminds your team to use IAM instead of root for routine tasks.
The alarm assumes your trail delivers to CloudWatch Logs, where a metric filter with the pattern { $.userIdentity.type = "Root" && $.userIdentity.invokedBy NOT EXISTS && $.eventType != "AwsServiceEvent" } publishes RootUserEventCount. It notifies an SNS topic:
{
"AlarmName": "RootUserActivity",
"AlarmDescription": "Alert on any root user API calls",
"MetricName": "RootUserEventCount",
"Namespace": "CloudTrailMetrics",
"Statistic": "Sum",
"Period": 300,
"EvaluationPeriods": 1,
"Threshold": 1,
"ComparisonOperator": "GreaterThanOrEqualToThreshold",
"TreatMissingData": "notBreaching",
"AlarmActions": ["arn:aws:sns:us-east-1:123456789012:security-alerts"]
}
Test root access periodically on any account that still has root credentials. On a fixed schedule (I suggest twice a year), verify you can log in as the root user, that MFA works, and that recovery procedures are documented. You don't want to discover password or MFA issues during an actual emergency.
Document root user procedures for break-glass scenarios. Write a runbook covering when root access is acceptable, how to request it, who authorizes it, and how to audit it afterward. Store this in a secure location accessible to your security team.
Store the root password securely. Use a password manager (1Password, Bitwarden, or similar) with the password stored in a vault accessible only to specific team members. The password should be 20+ characters, randomly generated, and never reused.
Identity and Access Management Best Practices
Day-to-day access should run through federated identities and well-scoped roles instead of root.
Federated Access vs. IAM Users
The modern approach to AWS identity management is federated access through an external identity provider. This means users authenticate through Okta, Google Workspace, Entra ID (formerly Azure AD), or a similar system, and receive temporary AWS credentials.
Federated access benefits:
- Temporary credentials that expire (typically 1-12 hours)
- Centralized user management in your existing identity system
- Single sign-on experience
- Deprovisioning in one place when employees leave
- No long-term access keys to leak or rotate
- MFA enforced at the identity provider level
IAM users with long-term credentials are the legacy approach. Each user has a username, password, and potentially access keys. These credentials don't expire automatically. They're harder to audit, easier to leak, and create sprawl.
For single accounts, you can set up SAML federation directly with IAM roles. For multi-account architectures, use IAM Identity Center (formerly AWS SSO) for centralized workforce identity and single sign-on across all accounts.
When IAM users are still necessary:
- CI/CD pipelines that haven't been migrated to OIDC
- Legacy applications that require long-term credentials
- Break-glass access if your identity provider fails
- Third-party integrations that only support access keys
If you must use IAM users, apply strict controls: require MFA, rotate access keys every 90 days, audit unused credentials, and minimize the number of users.
The migration path: Start new projects with federated access. Gradually deprecate IAM users as you modernize CI/CD pipelines and application authentication.
IAM Policy and Role Design
IAM policies control what actions are allowed on which resources. Getting this right prevents security incidents and excessive permissions.
Principle of least privilege: Start with zero permissions. Grant only what's needed. Expand incrementally based on demonstrated need. Never start with AdministratorAccess and "lock it down later." That never happens. For comprehensive guidance on implementing least privilege, review the AWS IAM best practices documentation.
Use AWS managed policies for common patterns. Policies like ReadOnlyAccess, PowerUserAccess, and SecurityAudit provide well-maintained templates. They're updated when new services launch.
Create customer managed policies for custom requirements. These are reusable policies you control. Use them for organization-specific permissions like "allow S3 access only to buckets in us-east-1" or "allow EC2 operations only on instances tagged with your team's name."
Avoid inline policies except for rare cases where a policy applies to exactly one principal and will never be reused.
Use IAM Access Analyzer to generate policies from actual usage. Access Analyzer reviews up to 90 days of a trail's events for a user or role and generates a policy from the actions it used. This is dramatically better than guessing required permissions.
Implement IAM conditions for context-based restrictions:
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": "s3:*",
"Resource": "*",
"Condition": {
"Bool": {"aws:MultiFactorAuthPresent": "true"},
"IpAddress": {"aws:SourceIp": ["203.0.113.0/24"]},
"StringEquals": {"aws:RequestedRegion": ["us-east-1", "us-west-2"]}
}
}]
}
This policy allows S3 actions only when:
- MFA is present
- Request originates from the office IP range
- Operations target us-east-1 or us-west-2
Rotate credentials regularly. For use cases requiring long-term access keys, rotate every 90 days. The AWS Config access-keys-rotated rule flags keys older than 90 days by default; a remediation action can deactivate them.
Use IAM permission boundaries for delegated administration. Permission boundaries define maximum permissions for a user or role. This allows you to safely delegate the ability to create IAM resources without granting unrestricted access.
Example: You could let a team create IAM roles for their Lambda functions, but the permission boundary ensures they can't grant themselves administrator access.
Run IAM Access Analyzer to validate policies and identify overly permissive access. Access Analyzer identifies resources shared with external accounts and analyzes policies for security issues.
MFA and Credential Management
Require MFA for all human users. No exceptions. Every IAM user and federated user should authenticate with a second factor.
Hardware MFA (YubiKey, FIDO security keys) is stronger than virtual MFA apps. For privileged access (administrators, security team, billing access), mandate hardware MFA.
Virtual MFA apps (Google Authenticator, Authy, 1Password) are acceptable for standard users. They're dramatically better than password-only authentication.
Disable unused credentials after 90 days. The iam-user-unused-credentials-check Config rule flags passwords and access keys unused for 90 days (its default); a remediation action can disable them. This reduces your attack surface.
Use AWS Secrets Manager for application credentials. Applications need credentials to access databases, APIs, and third-party services. Never hardcode these in source code or configuration files.
Secrets Manager provides:
- Automatic credential rotation
- Encryption at rest
- Fine-grained access control
- Audit trail of secret access
For Lambda functions and ECS tasks, grant IAM roles permission to retrieve specific secrets. The application fetches credentials at runtime.
Example Python code for Lambda:
import boto3
import json
def lambda_handler(event, context):
secrets_client = boto3.client('secretsmanager')
secret = secrets_client.get_secret_value(SecretId='prod/database/credentials')
credentials = json.loads(secret['SecretString'])
# Use credentials['username'] and credentials['password']
Never commit credentials to version control. Use git-secrets or similar tools to prevent accidental commits. If credentials are committed, assume they're compromised. Rotate immediately.
Logging and Monitoring Fundamentals
You can't investigate or detect what you don't record.
AWS CloudTrail for Audit Trails
CloudTrail records API activity in your AWS account: management events by default, and data events when you turn them on. This is your security audit trail and the foundation for incident investigation. For SOC 2 compliance, CloudTrail provides the kind of audit evidence auditors use to verify who did what and when. For detailed configuration options and best practices, refer to the AWS CloudTrail User Guide.
For the controls around it, including network security, data protection, and incident response, see our AWS Security Best Practices guide.
Enable CloudTrail in all Regions, not just your primary Region. Attackers can operate in any Region. If you only log us-east-1, malicious activity in eu-west-1 goes undetected. For specific Security Hub controls and Config rules to verify CloudTrail logging is properly configured, see our misconfigurations guide.
Log file integrity validation ensures logs haven't been tampered with. Enable this for forensic readiness. It uses cryptographic hashing to detect modifications.
Store logs in a dedicated S3 bucket with strict access controls. The bucket should be:
- Encrypted with KMS
- Versioned to prevent accidental deletion
- Protected with S3 Object Lock to prevent malicious deletion
- Configured with lifecycle policies to manage costs
Lock the log versions. S3 Object Lock blocks deleting locked versions until retention ends and works with lifecycle transitions. MFA Delete can't be combined with a lifecycle configuration, and only the root user can enable it.
Example S3 bucket policy for CloudTrail logs:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AWSCloudTrailAclCheck",
"Effect": "Allow",
"Principal": {"Service": "cloudtrail.amazonaws.com"},
"Action": "s3:GetBucketAcl",
"Resource": "arn:aws:s3:::my-cloudtrail-bucket",
"Condition": {
"StringEquals": {"aws:SourceArn": "arn:aws:cloudtrail:us-east-1:123456789012:trail/management-trail"}
}
},
{
"Sid": "AWSCloudTrailWrite",
"Effect": "Allow",
"Principal": {"Service": "cloudtrail.amazonaws.com"},
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::my-cloudtrail-bucket/AWSLogs/123456789012/*",
"Condition": {
"StringEquals": {
"s3:x-amz-acl": "bucket-owner-full-control",
"aws:SourceArn": "arn:aws:cloudtrail:us-east-1:123456789012:trail/management-trail"
}
}
}
]
}
Integrate CloudTrail with CloudWatch Logs for real-time alerting. This allows you to create CloudWatch metric filters for security-relevant events like:
- Root user API calls
- Failed console login attempts
- IAM policy changes
- Security group modifications
- S3 bucket policy changes
Set lifecycle policies to manage costs. Transition logs to S3 Glacier after 90 days for long-term retention. Delete after 7 years if you don't have longer compliance requirements.
AWS Config for Compliance Monitoring
AWS Config continuously records resource configurations and evaluates them against desired states. This is how you detect non-compliant resources and configuration drift for security audits.
For the controls Config should monitor, see our AWS Security Best Practices guide.
Enable Config for all resource types you care about. Config can record everything, but this gets expensive at scale. Start with security-sensitive resources:
- IAM roles and policies
- S3 buckets
- Security groups and NACLs
- EC2 instances
- RDS databases
- Lambda functions
Deploy Config rules to enforce compliance. Config rules evaluate resources against criteria you define. AWS provides managed rules for common checks:
encrypted-volumes: Detect unencrypted attached EBS volumess3-bucket-public-read-prohibited: Detect publicly readable S3 bucketsiam-user-mfa-enabled: Detect IAM users without MFArequired-tags: Ensure resources have required tags
Example Config rule for detecting unencrypted EBS volumes:
{
"ConfigRuleName": "encrypted-volumes",
"Description": "Checks whether EBS volumes are encrypted",
"Source": {
"Owner": "AWS",
"SourceIdentifier": "ENCRYPTED_VOLUMES"
},
"Scope": {
"ComplianceResourceTypes": ["AWS::EC2::Volume"]
}
}
Use conformance packs to deploy collections of Config rules. AWS provides pre-built conformance packs for compliance frameworks like CIS AWS Foundations Benchmark and PCI-DSS.
Enable automated remediation using AWS Systems Manager Automation. When Config detects non-compliance, it can automatically fix the issue. For example, if an S3 bucket becomes public, Config can automatically make it private again.
Example value for the --remediation-configurations option of aws configservice put-remediation-configurations, using the AWS-DisableS3BucketPublicReadWrite runbook to turn on S3 Block Public Access for the flagged bucket:
[
{
"ConfigRuleName": "s3-bucket-public-read-prohibited",
"TargetType": "SSM_DOCUMENT",
"TargetId": "AWS-DisableS3BucketPublicReadWrite",
"Automatic": true,
"Parameters": {
"AutomationAssumeRole": {"StaticValue": {"Values": ["arn:aws:iam::123456789012:role/ConfigRemediationRole"]}},
"S3BucketName": {"ResourceValue": {"Value": "RESOURCE_ID"}}
}
}
]
Cost considerations: Config charges per configuration item recorded and per rule evaluation. For cost optimization, record only critical resource types and use targeted rules instead of recording everything.
Security Hub and GuardDuty Basics
AWS Security Hub CSPM (called Security Hub until AWS launched a separate, new Security Hub in 2025) aggregates security findings from multiple services (Config, GuardDuty, Inspector, IAM Access Analyzer, Macie) and provides a centralized security posture dashboard.
These services detect problems; our AWS Security Best Practices guide covers the preventive controls for IAM, network security, and data protection.
Security Hub CSPM runs continuous compliance checks against standards including:
- AWS Foundational Security Best Practices: AWS's recommended security controls
- CIS AWS Foundations Benchmark: Industry-standard security baseline
- PCI-DSS: Payment card security requirements
Each finding has a severity (Critical, High, Medium, Low, Informational) and remediation guidance.
Enable it in each Region you use; its controls need AWS Config recording there:
aws securityhub enable-security-hub \
--enable-default-standards \
--region us-east-1
Amazon GuardDuty provides intelligent threat detection. It analyzes CloudTrail management events, VPC Flow Logs, and DNS query logs using machine learning to identify malicious activity.
GuardDuty detects:
- Compromised EC2 instances (cryptocurrency mining, command and control activity)
- Reconnaissance activity (port scanning, API enumeration)
- Credential compromise (API calls from unusual locations or TOR exit nodes)
- S3 data exfiltration
Then turn on the optional protection plans that match what you run, for example:
- S3 Protection: Monitors S3 data access patterns
- Lambda Protection: Monitors Lambda network activity for threats
- Malware Protection for EC2: Scans the EBS volumes attached to your instances for malware
GuardDuty findings feed into Security Hub CSPM for unified visibility.
Automate response to findings using EventBridge. When Security Hub CSPM or GuardDuty generates a high-severity finding, trigger Lambda functions to:
- Isolate compromised EC2 instances
- Disable compromised IAM credentials
- Send notifications to security team
- Create tickets in your incident management system
Example EventBridge rule for high-severity findings:
{
"source": ["aws.securityhub"],
"detail-type": ["Security Hub Findings - Imported"],
"detail": {
"findings": {
"Severity": {
"Label": ["CRITICAL", "HIGH"]
}
}
}
}
Cost Management Foundations
Spend surprises are often the first sign of a compromised or neglected account.
AWS Budgets and Alerts
AWS Budgets monitors spending and sends alerts when you exceed thresholds.
Create budgets based on monthly spending. Set thresholds at 50%, 80%, and 100% of your expected spend. This provides early warning before costs spiral.
Configure SNS notifications to alert your team when thresholds are crossed:
aws budgets create-budget \
--account-id 123456789012 \
--budget file://budget.json \
--notifications-with-subscribers file://notifications.json
Example budget configuration (user-defined tags take a user: prefix and must be activated as cost allocation tags):
{
"BudgetName": "Monthly-Cost-Budget",
"BudgetType": "COST",
"TimeUnit": "MONTHLY",
"BudgetLimit": {
"Amount": "10000",
"Unit": "USD"
},
"CostFilters": {
"TagKeyValue": ["user:Environment$Production"]
}
}
Automate the response to a breached threshold. Native budget actions can apply an IAM policy or an SCP, or stop specific EC2 or RDS instances, either automatically or after your approval. For custom logic, send the budget notification to an Amazon SNS topic and subscribe a Lambda function. This one stops every running instance tagged as development or test in the function's Region:
import boto3
def lambda_handler(event, context):
ec2 = boto3.client('ec2')
# Find all running non-production instances, across every page of results
pages = ec2.get_paginator('describe_instances').paginate(
Filters=[
{'Name': 'tag:Environment', 'Values': ['Development', 'Test']},
{'Name': 'instance-state-name', 'Values': ['running']}
]
)
instance_ids = []
for page in pages:
for reservation in page['Reservations']:
for instance in reservation['Instances']:
instance_ids.append(instance['InstanceId'])
if instance_ids:
ec2.stop_instances(InstanceIds=instance_ids)
Enable cost anomaly detection to catch unexpected spending spikes. It needs a cost monitor (an AWS services monitor covers every service) and an alert subscription that says who gets notified. Standalone and management accounts that turned on Cost Explorer on or after March 27, 2023 get a default monitor with a daily summary email, but check the console instead of assuming you have one.
Cost Optimization Quick Wins
Right-size using Compute Optimizer to address over-provisioned resources burning money. After you opt in, Compute Optimizer analyzes CloudWatch utilization metrics for EC2, Auto Scaling groups, EBS, Lambda, and more, and flags over-provisioned resources.
Delete unattached EBS volumes. Volumes often outlive the instances they were attached to and keep billing; filter describe-volumes on status=available to find them.
Remove snapshots and AMIs older than your retention requirements.
Use S3 Intelligent-Tiering for unpredictable access patterns, and set lifecycle policies on buckets and retention periods on CloudWatch Logs log groups so unread data expires or moves to cheaper storage.
Use Spot Instances for fault-tolerant work like batch processing, CI/CD jobs, and data analysis. They cost far less than On-Demand but can be interrupted with a two-minute warning.
The Critical Decision: Single vs. Multi-Account Strategy
At some point one account stops being enough.
Decision Framework Assessment
The single-account vs. multi-account decision depends on four factors:
Team size: Solo developers and very small teams (1-5 people) can operate effectively in a single account with proper IAM controls. Beyond 10 people, coordination overhead in a single account becomes painful. Multiple teams create conflicting tagging strategies, compete for service quotas, and increase the risk of accidental resource deletion.
Compliance requirements: Regulatory frameworks like HIPAA, PCI-DSS, or SOC2 reward workload isolation, because a smaller, separate scope is easier to audit. If you're subject to compliance audits, multi-account architecture simplifies evidence collection and scope limitation.
Workload types: A single application with development and production environments can work in one account. Multiple independent products, customer-specific deployments, or data residency requirements push you toward multi-account.
Growth trajectory: If you're a 3-person startup today but plan to scale to 15+ in 12 months, architect for your near-term future. Migrating from single-account to multi-account later requires careful planning but follows a proven 5-phase roadmap.
Here's a simplified decision matrix:
| Team Size | Complexity | Compliance | Recommendation |
|---|---|---|---|
| 1-5 | Low | None | Single account |
| 6-10 | Moderate | None | Consider multi-account |
| 6-10 | Moderate | Yes | Multi-account |
| 11+ | Any | Any | Multi-account |
Signals you've outgrown single-account architecture:
- Production incidents caused by development or testing activities
- Compliance auditors questioning workload isolation
- Service quota conflicts between teams
- Cost allocation disputes due to inadequate tagging
When Single-Account Makes Sense
Single-account architecture works for:
Very small teams validating product-market fit, where low operational overhead matters most.
Proof of concepts, prototypes, and side projects that will be rebuilt or discarded. Don't over-architect them.
Simple, isolated workloads like a basic web application with a database. If you're running WordPress on EC2 with RDS, you don't need multi-account complexity.
The key is recognizing when these conditions change. Plan for the migration to multi-account before you're forced into it by a security incident or compliance failure.
When Multi-Account Becomes Necessary
You need multi-account architecture when:
Multiple teams require resource isolation. Teams step on each other or start asking for their own accounts.
Production and non-production separation is critical. Separate accounts are the cleanest way to keep development work away from production.
Team size or compliance scope crosses the thresholds in the decision framework above.
Multiple independent applications or products with different owners, risk profiles, or lifecycles. Each product line should have autonomy without affecting others.
Customer-specific deployments where you're running separate infrastructure per customer for data isolation or contractual requirements.
If your organization matches these criteria, you're ready for multi-account architecture. Start with AWS Organizations: Complete Implementation Guide to understand the foundational service, then follow AWS Multi-Account Best Practices for complete implementation including OU structure, SCPs, IAM Identity Center, centralized logging, and landing zone deployment. This comprehensive guide walks through every step from initial Organizations setup to production-ready landing zone with specific implementation checklists and code examples.
Common Account Security Mistakes to Avoid
Most incidents trace back to a handful of repeated mistakes. Each one below maps to a control covered earlier in this guide.
Critical Root User Mistakes
- Using the root user for daily work, which gives every action unlimited reach. Set up the non-root admin path from the first-day checklist.
- Leaving root access keys in place. Delete them, as described in the root protection measures.
- Skipping root MFA. AWS now requires it on every account that keeps root credentials, so register it on day one.
- Tying the root email to one employee. When that person leaves, your password recovery path leaves with them.
- Running without a root activity alarm, so you learn about root use during an incident instead of from an alert.
IAM and Access Control Mistakes
- Long-term IAM users where federated access would work. Their credentials pile up and rarely get cleaned up.
AdministratorAccessfor everyone, so any leaked credential exposes the whole account. Start from least privilege and let IAM Access Analyzer generate policies from real usage.- Human users without MFA, protected by passwords that get phished and reused.
- Database passwords and API keys hardcoded in application code. Move them to Secrets Manager before they leak through a commit.
- Access keys that never rotate. Config rules can flag keys older than 90 days.
- Letting teams create IAM roles without permission boundaries, which lets them grant themselves anything.
Cost Management Mistakes
- No cost allocation tags, so nobody can say which team owns that RDS instance.
- No budget alerts. A test workload that scales unexpectedly then surfaces weeks later on the invoice.
- Test instances, troubleshooting snapshots, and load balancers for retired applications left running.
- Missing lifecycle policies on S3 and CloudWatch Logs, which lets data nobody reads grow every month.
- Ignoring Trusted Advisor, which flags idle and underutilized resources on Business Support+ and higher plans.
Conclusion
AWS account setup best practices come first because every later control depends on them.
Root user protection is non-negotiable. Federated access and least privilege IAM policies limit what a compromised credential can do. Logging and monitoring through CloudTrail, Config, Security Hub, and GuardDuty provide visibility and threat detection. Cost management through tagging and budgets prevents financial surprises.
Next steps:
- Work through the first-day checklist above on every new account
- Audit your existing account against the common mistakes section
- Document security procedures and runbooks
- Schedule quarterly security reviews
- Plan for multi-account migration if you've outgrown single-account
Next step