Skip to content

Commit

Permalink
Add KMS re-encrypt policies that (may) be blocking start of new EMR c…
Browse files Browse the repository at this point in the history
…lusters
  • Loading branch information
abought committed Feb 26, 2024
1 parent 9536662 commit abb2dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/imputation-server/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ resource "aws_kms_alias" "emr_kms" {
resource "aws_kms_grant" "ec2_kms_grant" {
key_id = aws_kms_key.emr_kms.arn
grantee_principal = var.ec2_role_arn
operations = ["Encrypt", "Decrypt", "GenerateDataKey", "GenerateDataKeyWithoutPlaintext"]
operations = ["Encrypt", "Decrypt", "ReEncryptFrom", "ReEncryptTo", "GenerateDataKey", "GenerateDataKeyWithoutPlaintext"]
}

resource "aws_kms_grant" "emr_kms_grant" {
key_id = aws_kms_key.emr_kms.arn
grantee_principal = var.emr_role_arn
operations = ["Encrypt", "Decrypt", "GenerateDataKey", "GenerateDataKeyWithoutPlaintext", "CreateGrant", "RetireGrant"]
operations = ["Encrypt", "Decrypt", "ReEncryptFrom", "ReEncryptTo", "GenerateDataKey", "GenerateDataKeyWithoutPlaintext", "CreateGrant", "RetireGrant"]
}

# ---------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit abb2dd1

Please sign in to comment.