-
Notifications
You must be signed in to change notification settings - Fork 0
/
s3-sns-policy.json
44 lines (44 loc) · 1.12 KB
/
s3-sns-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
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowGetBuckets",
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets",
"s3:GetBucketLocation"
],
"Resource": "*"
},
{
"Sid": "AllowCreateObjectforIPragngesStore",
"Effect": "Allow",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::(bucket name)",
"arn:aws:s3:::(bucket name)/*"
]
},
{
"Sid": "AllowPublishSNS",
"Action": [
"sns:Publish",
"sns:Subscribe"
],
"Effect": "Allow",
"Resource": [
"arn:aws:sns:(region):(account id):(sns name)"
]
},
{
"Sid": "AllowCreateLogGroupforLambda",
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": "*"
}
]
}