File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,16 @@ resource "aws_kms_key" "mpc_party" {
262262 policy = jsonencode ({
263263 Version = " 2012-10-17"
264264 Statement = [
265+ {
266+ Effect = " Allow" ,
267+ Principal = {
268+ AWS = " arn:aws:iam::${ data . aws_caller_identity . current . account_id } :role/${ module . iam_assumable_role_mpc_party . iam_role_name } "
269+ },
270+ Action = [
271+ " kms:GetPublicKey" ,
272+ ],
273+ Resource = " *" ,
274+ },
265275 {
266276 Effect = " Allow" ,
267277 Principal = {
@@ -270,7 +280,6 @@ resource "aws_kms_key" "mpc_party" {
270280 Action = [
271281 " kms:Decrypt" ,
272282 " kms:GenerateDataKey" ,
273- " kms:GetPublicKey"
274283 ],
275284 Resource = " *" ,
276285 Condition = {
@@ -343,7 +352,6 @@ resource "aws_kms_key" "mpc_party_backup" {
343352 Action = [
344353 " kms:Decrypt" ,
345354 " kms:GenerateDataKey" ,
346- " kms:GetPublicKey"
347355 ],
348356 Resource = " *" ,
349357 Condition = {
You can’t perform that action at this time.
0 commit comments