A shop that is live needs watching. Four tools, four questions:
| Question | Tool |
|---|---|
| Is it healthy right now? | CloudWatch metrics and alarms: CPU, requests, errors; an alarm acts when one crosses a line |
| What did it say? | CloudWatch Logs: the output of servers and functions, in one place |
| Who changed what? | CloudTrail: every change to the account, with who made it and when |
| What will it cost? | Budgets: an email when spending passes a limit you set; on its own, it doesn't stop anything |
Cleaning up is part of running it: stopped servers' disks, idle NAT gateways, old images and forgotten buckets all keep costing money until they are deleted.
Security is shared. That is the shared responsibility model:
| AWS secures the cloud | You secure what is in the cloud |
|---|---|
| buildings, hardware, the network between data centres | your data, and who can reach it |
| the software that runs EC2, S3 and the rest | IAM users, groups, policies and roles |
| the operating system and software on your instances | |
| security groups and which subnets are public |
Everything in chapters 3 to 5 was your half.