File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
terraform_aws_backup/aws-backup-source/modules/aws_config Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,4 @@ data "aws_iam_policy_document" "backup_key_policy" {
3131 actions = [" kms:*" ]
3232 resources = [" *" ]
3333 }
34- statement {
35- sid = " AllowBackupUseOfKey"
36- principals {
37- type = " Service"
38- identifiers = [" sns.amazonaws.com" ]
39- }
40- actions = [" kms:GenerateDataKey" , " kms:Decrypt" ]
41- resources = [" *" ]
42- }
4334}
Original file line number Diff line number Diff line change @@ -58,6 +58,14 @@ resource "aws_kms_key" "sns_encrypt_key" {
5858 Action = [" kms:GenerateDataKey*" , " kms:Decrypt" ]
5959 Resource = " *"
6060 },
61+ {
62+ Effect = " Allow"
63+ Principal = {
64+ Service = " backup.amazonaws.com"
65+ }
66+ Action = [" kms:GenerateDataKey*" , " kms:Decrypt" ]
67+ Resource = " *"
68+ },
6169 ]
6270 })
6371}
You can’t perform that action at this time.
0 commit comments