Skip to content

Commit

Permalink
allow updated key policy (#3037)
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-whitwell authored Jan 7, 2025
1 parent fc40124 commit fb0b3c7
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion terraform/account/kms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ data "aws_iam_policy_document" "cloudwatch_kms" {
}
}


module "event_receiver_mrk" {
source = "./modules/multi_region_kms"

Expand Down Expand Up @@ -205,4 +204,31 @@ data "aws_iam_policy_document" "event_receiver_kms" {
]
}
}

statement {
sid = "Key Administrator"
effect = "Allow"
resources = ["*"]
actions = [
"kms:Create*",
"kms:Describe*",
"kms:Enable*",
"kms:List*",
"kms:Put*",
"kms:Update*",
"kms:Revoke*",
"kms:Disable*",
"kms:Get*",
"kms:Delete*",
"kms:TagResource",
"kms:UntagResource",
"kms:ScheduleKeyDeletion",
"kms:CancelKeyDeletion"
]

principals {
type = "AWS"
identifiers = ["arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/breakglass"]
}
}
}

0 comments on commit fb0b3c7

Please sign in to comment.