-
Notifications
You must be signed in to change notification settings - Fork 3
/
VenafiRequestLambdaRolePolicy.json
82 lines (82 loc) · 2.01 KB
/
VenafiRequestLambdaRolePolicy.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"lambda:GetAccountSettings",
"lambda:GetFunction",
"lambda:GetFunctionConfiguration",
"lambda:GetPolicy",
"lambda:ListFunctions",
"lambda:InvokeAsync",
"lambda:InvokeFunction",
"lambda:UpdateFunctionConfiguration"
],
"Resource": [
"arn:aws:lambda:*:*:function:serverlessrepo-aws-private-VenafiCertRequestLambda-*"
]
},
{
"Effect": "Allow",
"Action": [
"dynamodb:ListTagsOfResource",
"dynamodb:GetItem",
"dynamodb:BatchGetItem",
"dynamodb:BatchWriteItem",
"dynamodb:ConditionCheckItem",
"dynamodb:PutItem",
"dynamodb:Scan",
"dynamodb:Query",
"dynamodb:UpdateItem"
],
"Resource": [
"arn:aws:dynamodb:*:*:table/VenafiCertPolicy"
]
},
{
"Effect": "Allow",
"Action": [
"logs:DescribeLogStreams",
"logs:CreateLogStream",
"logs:GetLogEvents",
"logs:DescribeLogGroups",
"logs:PutLogEvents",
"logs:GetLogGroupFields"
],
"Resource": [
"arn:aws:logs:*:*:log-group:*:*:*",
"arn:aws:logs:*:*:log-group:*Venafi*Lambda*"
]
},
{
"Effect": "Allow",
"Action": [
"acm-pca:GetCertificate",
"acm-pca:GetCertificateAuthorityCertificate",
"acm-pca:IssueCertificate",
"acm-pca:ListCertificateAuthorities",
"acm-pca:RevokeCertificate"
],
"Resource": [
"arn:aws:acm-pca:*:*:certificate-authority/*"
]
},
{
"Effect": "Allow",
"Action": [
"acm:DeleteCertificate",
"acm:DescribeCertificate",
"acm:ExportCertificate",
"acm:GetCertificate",
"acm:ImportCertificate",
"acm:RenewCertificate",
"acm:RequestCertificate",
"acm:UpdateCertificateOptions"
],
"Resource": [
"*"
]
}
]
}