Introduction to AWS KMS
Managed creation and control of encryption keys.
- 4 lessons
- Module quiz
Encrypting data is straightforward; managing the keys is the hard part. Keys must be generated securely, stored where nobody can copy them, made available only to the identities that should use them, rotated, and audited every time they are used.
AWS Key Management Service (AWS KMS) creates and controls encryption keys for this purpose. Keys never leave KMS unencrypted. Instead, applications and AWS services call KMS to encrypt, decrypt or generate data keys, KMS checks the key's policy, and every use is recorded in AWS CloudTrail. Most AWS services that store data use KMS for encryption at rest. Keys are Regional, with multi-Region keys available, and KMS is charged per customer managed key per month plus per API request.
Where KMS fits
For developers, the important points are how keys are controlled and how applications encrypt data larger than KMS itself accepts. The Encrypt operation handles at most 4 KB of data, so larger data uses envelope encryption, in which KMS generates a data key that encrypts the data locally. KMS requests are also subject to Regional quotas, so applications that encrypt at high rates may be throttled unless they cache data keys.
How this module is organised
Choosing and Controlling Access to AWS KMS Keys explains the types of key and how key policies control them. Encrypting Large Data with Envelope Encryption explains how applications encrypt large data and avoid throttling. Sharing KMS Keys Across AWS Accounts explains how keys are shared with other accounts, and Rotating KMS Keys Automatically and Manually explains automatic and manual rotation.
- Choosing and Controlling Access to AWS KMS Keys Lesson 1
- Encrypting Large Data with Envelope Encryption Lesson 2
- Sharing KMS Keys Across AWS Accounts Lesson 3
- Rotating KMS Keys Automatically and Manually Lesson 4
- Practise and review
- Checkpoint Practice activities across the module
- Test your knowledge 8 questions