ladderlore
  • S3 や IAM などのサービス名を入力してください。

サービス · セキュリティ、アイデンティティ、コンプライアンス

AWS Key Management Service (AWS KMS)

Creates and controls the keys that encrypt your data, with every use logged in AWS CloudTrail.

このレッスンはまだ翻訳されていないため、英語で表示しています。

あなた
S3
Object stored encrypted
KMS
CloudTrail
  1. 1You upload an object to an S3 bucket that is set to use your KMS key.
  2. 2S3 asks KMS for a data key. KMS returns it, together with a copy encrypted under your KMS key.
  3. 3S3 encrypts the object with the data key, and stores only the encrypted copy of that key with it.
  4. 4KMS records the request in AWS CloudTrail.
Envelope encryption with Amazon S3 and a KMS key.

流れ

  1. 1You upload an object to an S3 bucket that is set to use your KMS key.
  2. 2S3 asks KMS for a data key. KMS returns it, together with a copy encrypted under your KMS key.
  3. 3S3 encrypts the object with the data key, and stores only the encrypted copy of that key with it.
  4. 4KMS records the request in AWS CloudTrail.
  • Customer managed key

    Created by
    You, in your account
    What you control
    Who can use it, rotation and deletion
    Use shown in CloudTrail
    Yes
  • AWS managed key

    Created by
    An AWS service, in your account
    What you control
    Nothing. AWS rotates it every year.
    Use shown in CloudTrail
    Yes
  • AWS owned key

    Created by
    An AWS service, in its own account
    What you control
    Nothing
    Use shown in CloudTrail
    No
The three kinds of KMS keys.

1 / 2

  • Customer managed key

    Created by
    You, in your account
    What you control
    Who can use it, rotation and deletion
    Use shown in CloudTrail
    Yes
  • AWS managed key

    Created by
    An AWS service, in your account
    What you control
    Nothing. AWS rotates it every year.
    Use shown in CloudTrail
    Yes

2 / 2

  • AWS owned key

    Created by
    An AWS service, in its own account
    What you control
    Nothing
    Use shown in CloudTrail
    No
The three kinds of KMS keys.

概要

AWS Key Management Service (AWS KMS) is a managed service for creating and controlling encryption keys. KMS keys are protected by hardware security modules (HSMs) validated under FIPS 140-3 Security Level 3, a US government security standard. They never leave KMS unencrypted.

Most AWS services that store data, such as Amazon S3, Amazon EBS and Amazon RDS, are integrated with KMS. To encrypt your data, a service asks KMS for a data key, encrypts the data with it, and stores the data key in encrypted form next to the data. This is called envelope encryption. Only someone who is allowed to use your KMS key can decrypt the data key and read the data.

概要

You decide who may use each key, with key policies and IAM policies. Every request to use a key is recorded in AWS CloudTrail, so you can see who used which key and when. You can also turn on automatic key rotation.

覚えること

  • The usual choice for encryption at rest in AWS services.
  • Customer managed keys: you create them and control who can use them, rotation and deletion.
  • AWS managed keys: an AWS service creates them in your account, and AWS rotates them every year. You can see them but not change them.
  • AWS owned keys: AWS services use them for you. You cannot see or manage them.

覚えること

  • Every use of your keys is logged in AWS CloudTrail.
  • Passwords and API keys belong in AWS Secrets Manager. KMS holds encryption keys.

試験では

  • “Create and control encryption keys that work with AWS services, with every use logged” points to AWS KMS.
  • “Single-tenant hardware where only the customer controls the keys” points to AWS CloudHSM instead.
  • “Store and rotate database passwords” points to AWS Secrets Manager, not KMS.