Chapter 4: AWS account baseline
Do this before any server exists. Console paths verified against AWS docs 2026-12.
4.1 Identity
- Root user: enable MFA; delete any root access keys; use root only for billing/account tasks.
- People: IAM Identity Center (or IAM users) with MFA, one identity per person, least privilege. Developers get read-only + specific write permissions, not
AdministratorAccess.
- No long-lived access keys on servers. Instances use an IAM instance profile (role).
4.2 Visibility and alerting
| Item |
How |
Why |
| CloudTrail trail |
CloudTrail → Trails → Create trail (all Regions, S3 bucket, log file validation on) |
Event history alone keeps only 90 days |
| GuardDuty (+ RDS Protection) |
GuardDuty → Enable; turn on RDS Protection |
Flags anomalous/brute-force RDS logins (CredentialAccess:RDS/AnomalousBehavior.*). Needs ~2 weeks to baseline. |
| Findings to email |
EventBridge rule (GuardDuty findings) → SNS topic → your email |
Otherwise nobody reads them |
| AWS Budgets |
Billing → Budgets → monthly cost budget with alert |
Miners and abuse show up on the bill |
4.3 Secure defaults (per Region)
| Setting |
Console path |
Value |
| EBS encryption by default |
EC2 → Settings → Data protection and security → EBS encryption → Manage (also reachable via EC2 Dashboard → Account attributes → Data protection and security) |
Enable (affects new volumes only) |
| IMDSv2 by default |
EC2 Dashboard → Account attributes → Data protection and security → IMDS defaults → Manage |
Metadata version: V2 only (token required) (affects new instances only) |
| VPC default security group |
VPC → Security groups → the group named default → Inbound rules / Outbound rules |
Remove all rules (R11) |
4.4 Tagging convention
| Tag |
Example |
Name |
<project>-prod-app, <project>-prod-ec2 (SG), <project>-prod-rds (SG) |
Project |
<project> |
Environment |
production / staging |
Owner |
person or team responsible |