-
Notifications
You must be signed in to change notification settings - Fork 1
/
lambda_auth_role_policy.json
48 lines (48 loc) · 1.53 KB
/
lambda_auth_role_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
42
43
44
45
46
47
48
{
"Version" : "2012-10-17",
"Statement" : [
{
"Effect": "Allow",
"Action": [
"secretsmanager:GetSecretValue"
],
"Resource": [
"arn:aws:secretsmanager:${region}:${account_id}:secret:aws/transfer/${transfer_server_id}/*"
]
},
{
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": [
"arn:aws:logs:${region}:${account_id}:log-group:/aws/lambda/${lambda_auth_function_name}*:log-stream:*",
"arn:aws:logs:${region}:${account_id}:log-group:/aws/lambda/${lambda_auth_function_name}/*",
"arn:aws:logs:${region}:${account_id}:log-group:/aws/lambda-insights",
"arn:aws:logs:${region}:${account_id}:log-group:/aws/lambda-insights/*:*"
]
},
{
"Effect": "Allow",
"Action": [
"xray:PutTraceSegments",
"xray:PutTelemetryRecords",
"xray:GetSamplingRules",
"xray:GetSamplingTargets",
"xray:GetSamplingStatisticSummaries"
],
"Resource": [
"*"
]
},
{
"Action": [
"cloudwatch:PutMetricData"
],
"Resource": "*",
"Effect": "Allow"
}
]
}