Skill 1.3.4
Implementing access policies for encryption keys
Key Concepts
Every KMS key has exactly one key policy, which is the primary access control. The default key policy gives the account root principal full access, which enables IAM policies in that account to grant use of the key. Without that statement, IAM policies alone cannot grant access. Separate key administrators (manage the key) from key users (encrypt and decrypt).
Grants give temporary, programmatic permissions to use a key, typically created by AWS services on your behalf (for example, EBS attaching an encrypted volume). Condition keys such as kms:ViaService restrict a key to use through a specific service, and encryption context ties ciphertext to its purpose.
For cross-account use, the key policy must allow the other account and the other account's IAM policies must allow its principals to use the key. AWS managed keys cannot be shared across accounts, so sharing encrypted snapshots or AMIs requires a customer managed key.