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
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
- 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:Decryptfor the source key andkms:Encryptfor 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
- The AMI in the source account is encrypted with a KMS key from the source account.
- Modify the image attribute to add a launch permission for the target AWS account.
- Share the KMS keys used to encrypt the snapshots the AMI references with the target account or IAM role.
- The IAM role or user in the target account needs
DescribeKey,ReEncrypt*,CreateGrantandDecryptpermissions on the key. - 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:
Create a KMS multi-Region key in us-east-1 with a replica in eu-west-1; each Region's app decrypts with its local key.
Enable replication of KMS-encrypted objects, choose the destination key, and give the replication role kms:Decrypt on the source key and kms:Encrypt on the destination key (and allow it in the key policies).
AWS documentation
AWS KMS
AWS Key Management Service, symmetric and asymmetric KMS keys, AWS owned, AWS managed and customer managed keys, pricing, key rotation, key policies, and copying encrypted snapshots across Regions and accounts.
AWS CloudHSM
AWS CloudHSM for dedicated, single-tenant hardware security modules, who manages what, high availability across AZs, integration with KMS custom key stores, and CloudHSM vs KMS.