You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a multi-region key, the 'key_administrators' IAM policy does not provide the 'kms:ReplicateKey' permission and replication fails with an access denied error.
AWS KMS adds the following permissions to the default key administrators statement when you create special-purpose keys.
kms:ReplicateKey
The kms:ReplicateKey permission allows key administrators to create a replica of a multi-Region primary key in a different AWS Region. This permission is included in the key policy only when you create a multi-Region primary or replica key.
Error: creating KMS Replica Key: AccessDeniedException: User: arn:aws:sts::account:assumed-role/role/session_id is not authorized to perform: kms:ReplicateKey on resource: arn:aws:kms:region:account:key/mrk-key because no resource-based policy allows the kms:ReplicateKey action
status code: 400, request id: id
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
When creating a multi-region key, the 'key_administrators' IAM policy does not provide the 'kms:ReplicateKey' permission and replication fails with an access denied error.
The comment above the IAM policy for 'key_administrators' points to AWS KMS docs - Default key policy (key administrators) and states:
This doesn't happen when creating it via Terraform.
Both permissions should be added to the policy.
Versions
Module version [Required]: 1.5.0
Terraform version: 1.5.5
Provider version(s):
Reproduction Code [Required]
Steps to reproduce the behavior:
Expected behavior
The key is replicated in another region.
Actual behavior
Access denied error:
The text was updated successfully, but these errors were encountered: