Chapter Five

Security & Identity

Security on AWS is a shared responsibility: AWS secures the cloud, you secure what you run in it. These eight services are the controls you own — identity first, because every other control depends on it.

8 services

Core Terminology

A few terms recur across this chapter. Defining them here keeps the service sections focused.

Principal
Any entity that makes a request — an IAM user, role, or AWS service. Policies grant or deny what a principal may do.
Identity vs Resource Policy
An identity policy attaches to a principal (what this role can do); a resource policy attaches to a resource (who can touch this bucket). Both are evaluated.
Least Privilege
Grant only the permissions actually needed. The default posture for every role — broad wildcards are how breaches escalate.
Envelope Encryption
Data is encrypted with a data key, which is itself encrypted by a KMS key. KMS never sees your data, only the small data key.
Shared Responsibility Model
AWS secures the infrastructure (the cloud); you secure your data, identities, and configuration (in the cloud).

Services in This Chapter