Appendix A: Go-live checklist¶
- Account: root MFA, no root keys, humans with MFA, CloudTrail trail, GuardDuty (+RDS) → email, Budget alert
- Defaults: EBS encryption on, IMDSv2 required, VPC default SG has no rules
- SGs created first, named
<project>-<env>-<role>, described; only 80/443 public; 22 from office or none - EC2: own key pair, existing named SG selected (no launch-wizard), IMDSv2, encrypted disk, instance profile, Elastic IP, termination protection
- RDS: private subnets, Public access No, own SG (5432 from app SG), custom parameter group (force_ssl, log_connections, 7-day logs), log export + retention, backups, deletion protection, encryption
- App DB role ≠ master/superuser
- Server compose file selected via
COMPOSE_FILE; DB/cache no ports; app on 127.0.0.1; Redis password; log rotation;no-new-privileges -
.envgenerated secrets,chmod 600, not in git/image - Django: DEBUG False, ALLOWED_HOSTS, gunicorn,
check --deployclean - nginx → 127.0.0.1:8000, HTTPS, HTTP→HTTPS redirect, renewal tested
- Monitoring: uptime, CPU, status check, RDS alarms
- Backups + one restore test done
- Chapter 11 verification passed from an outside network