Skip to Content

KMS multi-Region keys and encrypted sharing

KMS multi-Region keys and their use with DynamoDB global tables and Aurora global databases, encryption considerations for S3 replication, and sharing AMIs encrypted with KMS.

Multi-Region keys

KMS multi-Region keys: a primary key in us-east-1 is replicated to us-west-2, eu-west-1 and ap-southeast-2; every replica has the same key ID and key material, kept in sync, so data encrypted in one Region can be decrypted in another KMS multi-Region keys: a primary key in us-east-1 is replicated to us-west-2, eu-west-1 and ap-southeast-2; every replica has the same key ID and key material, kept in sync, so data encrypted in one Region can be decrypted in another

One key, the same in several Regions.

Multi-Region keys are identical KMS keys in different AWS Regions that can be used interchangeably.

  • They have the same key ID (starting with mrk-), key material, automatic rotation…
  • Encrypt in one Region and decrypt in another.
  • No need to re-encrypt or make cross-Region API calls.
  • Multi-Region keys are not global: there's a primary and replicas.
  • Each multi-Region key is managed independently (its own key policy, aliases, tags).
  • Use cases: global client-side encryption, encryption on DynamoDB global tables, Aurora global databases, disaster recovery.

DynamoDB global tables with client-side encryption

Client-side encryption with a DynamoDB global table and a multi-Region key: in us-east-1 the client encrypts the SSN attribute with the primary key and writes the item; the global table replicates the still-encrypted item to ap-southeast-2, where a client reads it and decrypts the attribute with the local replica key Client-side encryption with a DynamoDB global table and a multi-Region key: in us-east-1 the client encrypts the SSN attribute with the primary key and writes the item; the global table replicates the still-encrypted item to ap-southeast-2, where a client reads it and decrypts the attribute with the local replica key

Encrypted in one Region, decrypted in another.
  • Encrypt specific attributes client-side in a DynamoDB table with the Amazon DynamoDB Encryption Client (now part of the AWS Database Encryption SDK).
  • With global tables, the client-side encrypted data is replicated to other Regions.
  • If the multi-Region key is replicated in the same Regions as the global table, clients there can make low-latency calls to KMS in their own Region to decrypt.
  • Client-side encryption protects specific fields (such as a social security number) and guarantees only clients with access to the key can decrypt, even from database admins.

The same works with Aurora global databases and the AWS Encryption SDK: encrypt a column client-side with the primary key, and decrypt it in another Region with the replica.

S3 replication and encryption

  • Unencrypted objects and objects encrypted with SSE-S3 are replicated by default.
  • Objects encrypted with SSE-C (customer-provided key) can be replicated.
  • For objects encrypted with SSE-KMS, the option must be enabled:
    • specify which KMS key encrypts the objects in the target bucket;
    • adapt the KMS key policy for the target key;
    • give the replication IAM role kms:Decrypt for the source key and kms:Encrypt for the target key;
    • KMS throttling errors may occur; ask for a Service Quotas increase if so.

Updated since the slides

The slides say S3 treats multi-Region keys as independent keys, decrypting and re-encrypting each object. S3 replication now supports multi-Region key resolution: S3 encrypts each replica with the related multi-Region key in the destination Region. The replication options above still need configuring.

Sharing an AMI encrypted with KMS

Sharing an encrypted AMI: account A adds a launch permission for account B on the AMI and shares the KMS key used by its snapshots through the key policy; account B, whose role can use the key, launches an EC2 instance and can re-encrypt the volumes with its own key Sharing an encrypted AMI: account A adds a launch permission for account B on the AMI and shares the KMS key used by its snapshots through the key policy; account B, whose role can use the key, launches an EC2 instance and can re-encrypt the volumes with its own key

Share the AMI and the key behind its snapshots.
  1. The AMI in the source account is encrypted with a KMS key from the source account.
  2. Modify the image attribute to add a launch permission for the target AWS account.
  3. Share the KMS keys used to encrypt the snapshots the AMI references with the target account or IAM role.
  4. The IAM role or user in the target account needs DescribeKey, ReEncrypt*, CreateGrant and Decrypt permissions on the key.
  5. When launching an instance from the AMI, the target account can optionally specify a new KMS key in its own account to re-encrypt the volumes.

See also sharing AMIs.

Real-world examples

  • A payments company encrypts card numbers client-side in a DynamoDB global table with a multi-Region key, so its US and Singapore apps can both decrypt locally, while DBAs see only ciphertext.
  • A platform team shares a golden AMI with 30 accounts: launch permissions on the AMI and a key policy on its customer managed key.

Exam tips

  • "Encrypt in one Region, decrypt in another without re-encrypting" → KMS multi-Region keys.
  • "Protect specific fields even from database admins, in a global table" → client-side encryption + multi-Region keys.
  • "Replicate SSE-KMS objects" → enable the KMS option in replication, target key, and an IAM role with decrypt and encrypt permissions.
  • "Share an encrypted AMI" → launch permission + share the KMS key.

Common traps

  • "Multi-Region keys are one global key." They're separate keys (primary and replicas) with the same ID and material, managed independently.
  • "SSE-KMS objects replicate automatically." It must be enabled.

Check yourself

A multi-Region key costs $1 a month for the primary and for each replica, so instead:

AWS documentation

On this page

Open notes

Spotted a mistake?

These notes are open source. Suggest a fix, or star the repo if they helped you.

Suggest an edit

For AI agents: llms.txt · llms-full.txt