Skip to content

Commit 6e81c8b

Browse files
NRL-1582 Update KMS policy with backup perms
1 parent 72d97cb commit 6e81c8b

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)