-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rekognition-Label-Policy.json
40 lines (40 loc) · 1.08 KB
/
Rekognition-Label-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
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "RekognitionPermissions",
"Effect": "Allow",
"Action": "rekognition:*",
"Resource": "*"
},
{
"Sid": "S3AndDynamoDBPermissions",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"dynamodb:PutItem"
],
"Resource": [
"arn:aws:dynamodb:us-east-1:*:table/ImageLabelsTable",
"arn:aws:s3:::image-bucket-2312/*"
]
},
{
"Sid": "CloudWatchLogsPermissions",
"Effect": "Allow",
"Action": "logs:CreateLogGroup",
"Resource": "arn:aws:logs:us-east-1:*:*"
},
{
"Sid": "LambdaLogsPermissions",
"Effect": "Allow",
"Action": [
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": [
"arn:aws:logs:us-east-1:*:log-group:/aws/lambda/lambda:*"
]
}
]
}