-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless_policy.json
135 lines (135 loc) · 4.53 KB
/
serverless_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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"lambda:CreateFunction",
"logs:DescribeLogGroups",
"lambda:List*",
"logs:DescribeLogStreams",
"lambda:Get*",
"s3:DeleteBucketPolicy",
"cloudwatch:GetMetricStatistics",
"s3:PutObject",
"s3:PutBucketPolicy",
"s3:PutBucketNotification",
"logs:FilterLogEvents",
"cloudformation:List*",
"cloudformation:ValidateTemplate",
"cloudformation:Get*"
],
"Resource": "*"
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": [
"s3:PutAccelerateConfiguration",
"s3:ListBucketVersions",
"s3:CreateBucket",
"s3:ListBucket",
"s3:PutEncryptionConfiguration",
"s3:GetEncryptionConfiguration",
"apigateway:DELETE",
"iam:PassRole",
"logs:CreateLogStream",
"apigateway:PATCH",
"cloudformation:UpdateStack",
"lambda:DeleteFunction",
"apigateway:GET",
"s3:DeleteBucket",
"apigateway:PUT",
"lambda:InvokeFunction",
"logs:DeleteLogGroup",
"lambda:Update*",
"logs:CreateLogGroup",
"events:Delete*",
"lambda:AddPermission",
"cloudformation:CreateStack",
"cloudformation:DeleteStack",
"lambda:PublishVersion",
"apigateway:POST",
"s3:GetBucketLocation",
"lambda:RemovePermission",
"lambda:CreateAlias"
],
"Resource": [
"arn:aws:s3:::passwordbreachcheck*serverlessdeploy*",
"arn:aws:apigateway:*::/restapis*",
"arn:aws:apigateway:*::/apikeys*",
"arn:aws:apigateway:*::/usageplans*",
"arn:aws:iam::*:role/*",
"arn:aws:lambda:*:*:function:passwordbreachcheck-*-*",
"arn:aws:logs:*:*:*",
"arn:aws:events:*:*:rule/passwordbreachcheck-*-*",
"arn:aws:cloudformation:*:*:stack/passwordbreachcheck-*/*"
]
},
{
"Sid": "VisualEditor2",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"iam:GetRole",
"events:DescribeRule",
"iam:DeleteRolePolicy",
"iam:CreateRole",
"iam:DeleteRole",
"iam:PutRolePolicy",
"s3:DeleteObject",
"logs:PutLogEvents"
],
"Resource": [
"arn:aws:logs:*:*:*",
"arn:aws:events:*:*:rule/passwordbreachcheck-*-*",
"arn:aws:s3:::passwordbreachcheck*serverlessdeploy*",
"arn:aws:iam::*:role/passwordbreachcheck-*-*-lambdaRole"
]
},
{
"Sid": "VisualEditor3",
"Effect": "Allow",
"Action": "s3:CreateBucket",
"Resource": "arn:aws:s3:::*"
},
{
"Sid": "VisualEditor4",
"Effect": "Allow",
"Action": [
"cloudformation:CreateUploadBucket",
"cloudformation:Describe*"
],
"Resource": "arn:aws:cloudformation:*:*:stack/passwordbreachcheck-*/*"
},
{
"Sid": "VisualEditor5",
"Effect": "Allow",
"Action": "kinesis:*",
"Resource": "arn:aws:kinesis:*:*:stream/passwordbreachcheck-*-*"
},
{
"Sid": "VisualEditor6",
"Effect": "Allow",
"Action": "sqs:*",
"Resource": "arn:aws:sqs:*:*:passwordbreachcheck-*-*"
},
{
"Sid": "VisualEditor7",
"Effect": "Allow",
"Action": [
"events:Put*",
"events:Remove*"
],
"Resource": "arn:aws:events:*:*:rule/passwordbreachcheck-*-*"
},
{
"Sid": "VisualEditor8",
"Effect": "Allow",
"Action": "dynamodb:*",
"Resource": "arn:aws:dynamodb:*:*:table/*"
}
]
}