Skip to content

Commit 5838ec0

Browse files
Merge pull request #1089 from NHSDigital/bugfix/safo6-NRL-1582-backup-notification-fix
NRL-1582 Update KMS policy with backup perms
2 parents 72d97cb + 6e81c8b commit 5838ec0

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

terraform/account-wide-infrastructure/dev/aws-backup.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,14 @@ resource "aws_kms_key" "backup_notifications" {
103103
Action = ["kms:GenerateDataKey*", "kms:Decrypt"]
104104
Resource = "*"
105105
},
106+
{
107+
Effect = "Allow"
108+
Principal = {
109+
Service = "backup.amazonaws.com"
110+
}
111+
Action = ["kms:GenerateDataKey*", "kms:Decrypt"]
112+
Resource = "*"
113+
},
106114
]
107115
})
108116
}

terraform/account-wide-infrastructure/prod/aws-backup.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,14 @@ resource "aws_kms_key" "backup_notifications" {
103103
Action = ["kms:GenerateDataKey*", "kms:Decrypt"]
104104
Resource = "*"
105105
},
106+
{
107+
Effect = "Allow"
108+
Principal = {
109+
Service = "backup.amazonaws.com"
110+
}
111+
Action = ["kms:GenerateDataKey*", "kms:Decrypt"]
112+
Resource = "*"
113+
},
106114
]
107115
})
108116
}

terraform/account-wide-infrastructure/test/aws-backup.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,14 @@ resource "aws_kms_key" "backup_notifications" {
103103
Action = ["kms:GenerateDataKey*", "kms:Decrypt"]
104104
Resource = "*"
105105
},
106+
{
107+
Effect = "Allow"
108+
Principal = {
109+
Service = "backup.amazonaws.com"
110+
}
111+
Action = ["kms:GenerateDataKey*", "kms:Decrypt"]
112+
Resource = "*"
113+
},
106114
]
107115
})
108116
}

0 commit comments

Comments
 (0)