Skip to content

Commit

Permalink
Additional missing KMS grant permissions for failed re-deploy issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
abought committed Feb 26, 2024
1 parent abb2dd1 commit e839dd8
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", "ReEncryptFrom", "ReEncryptTo", "GenerateDataKey", "GenerateDataKeyWithoutPlaintext"]
operations = ["Encrypt", "Decrypt", "ReEncryptFrom", "ReEncryptTo", "DescribeKey", "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", "ReEncryptFrom", "ReEncryptTo", "GenerateDataKey", "GenerateDataKeyWithoutPlaintext", "CreateGrant", "RetireGrant"]
operations = ["Encrypt", "Decrypt", "ReEncryptFrom", "ReEncryptTo", "DescribeKey", "GenerateDataKey", "GenerateDataKeyWithoutPlaintext", "CreateGrant", "RetireGrant"]
}

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

0 comments on commit e839dd8

Please sign in to comment.