AWS in 1 Min · Episode 138

AWS KMS Part 1, keys and who can use them

Keys and who can use them. Watch the one-minute video, then read the details.

David Gomez1:18 video · 3 min read

"If it's encrypted, it's locked down." Only if the key is. Encryption turns data into noise for anyone without the key, but anyone who can use the key can read the data. So the real security question is never "is it encrypted?" but "who can use the key?" On AWS, that question is answered in AWS KMS, the Key Management Service.

What KMS does

KMS creates, stores and controls encryption keys, and AWS services call it to encrypt your data. The key material of a KMS key never leaves KMS's hardware security modules unencrypted (they are FIPS 140-3 Security Level 3 validated). You never download the key; you ask KMS to use it for you, and KMS checks whether you are allowed.

Three kinds of key

  • AWS owned keys: owned and managed by an AWS service in its own account. Free, nothing to manage, but you can't see them, audit them or change their policy. Many services use them for default encryption.
  • AWS managed keys: live in your account with aliases like aws/ebs, created by a service on your behalf. You can view them and see their use in CloudTrail, but you can't change their policy, and they rotate every year. AWS no longer creates this type for new services.
  • Customer managed keys: you create them and you control everything: the key policy, grants, automatic rotation, enabling, disabling and scheduled deletion. They cost a monthly fee per key plus per-request charges beyond the free tier.

Rule of thumb: the defaults are fine for convenience; choose a customer managed key when you must control or audit who can decrypt, share encrypted data across accounts, or be able to cut off access.

The key policy is the guest list

Every KMS key has exactly one key policy, and it is the primary control. IAM policies only work for a KMS key if the key policy allows it, usually through the default statement that delegates to the account. So access can come directly from the key policy, or through IAM when the key policy permits it, and otherwise nobody gets in, not even an administrator.

A common mistake is a key policy so broad that every role in the account can decrypt everything. Keep separate keys for separate data sets, and grant kms:Decrypt only to the roles that truly need it. Encryption with a too-generous key is a lock whose key hangs on the door.

Every use leaves a trace

Requests to use KMS keys are recorded in AWS CloudTrail: which principal asked, which key, which operation, and when. That makes KMS one of the best audit points you have: if someone read sensitive data, there is a Decrypt call for it.

Where AI fits

AI projects put new kinds of sensitive data in AWS: training sets, fine-tuned models, the documents behind a knowledge base. Amazon Bedrock lets you encrypt model customization jobs and custom models, agents, knowledge base data ingestion and model evaluation jobs with your own customer managed key, and the S3 buckets and vector stores behind them can use your key too. The point is control: your key policy decides which people, roles and services can use that data.

Quick recap

  • The key is the real lock: whoever can use it can read the data.
  • AWS owned and AWS managed keys are convenient; customer managed keys give you control and audit.
  • The key policy is the guest list; IAM only counts when the key policy allows it.
  • Every use is logged in CloudTrail.
AWS in 1 Min #138 · 1:18

Need an AWS expert on your team?

I'm David, an AWS expert and fractional cloud consultant. I work alongside your team to run your cloud and infrastructure: architecture, security, cost and day-to-day operations. You get senior AWS experience when you need it, without the cost of a full-time hire.

  • Architecture reviews and a clear plan for what to fix first
  • Security hardening: IAM, networking, audits
  • Lower AWS bills without slowing your team down
  • Hands-on help with AI workloads on AWS