-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkms-key-policy.json
41 lines (41 loc) · 1.05 KB
/
kms-key-policy.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"Version" : "2012-10-17",
"Id" : "key-policy-1",
"Statement" : [
{
"Sid" : "Allow Amazon Contact to encrypt call recordings as it creates them",
"Effect" : "Allow",
"Principal" : {
"AWS" : [
"${self:custom.params.amazonConnectAccessRoleArn}"
]
},
"Action" : [ "kms:Encrypt" ],
"Resource" : "*"
},
{
"Sid" : "Allow voicemail processing lambda to decrypt call recordings",
"Effect" : "Allow",
"Principal" : {
"AWS" : [
"arn:aws:iam::#{AWS::AccountId}:role/${self:functions.processVoicemail.iamRoleStatementsName}"
]
},
"Action" : [ "kms:Decrypt" ],
"Resource" : "*"
},
{
"Sid" : "Enable administration of the key",
"Effect" : "Allow",
"Principal" : {
"AWS" : [
"arn:aws:iam::#{AWS::AccountId}:root",
// Insert your role here in place of operator:
"arn:aws:iam::#{AWS::AccountId}:role/operator"
]
},
"Action" : "kms:*",
"Resource" : "*"
}
]
}