This repository has been archived by the owner on Mar 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
policy.json
86 lines (86 loc) · 2.91 KB
/
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
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"sts:GetCallerIdentity",
"ec2:DescribeAccountAttributes",
"appsync:CreateGraphqlApi",
"iam:CreateServiceLinkedRole",
"appsync:StartSchemaCreation",
"appsync:GetSchemaCreationStatus",
"appsync:CreateApiKey",
"appsync:ListApiKeys",
"appsync:CreateDataSource",
"appsync:GetDataSource",
"appsync:CreateResolver",
"appsync:GetResolver",
"appsync:DeleteApiKey",
"appsync:DeleteResolver",
"appsync:DeleteDataSource",
"appsync:GetGraphqlApi",
"appsync:DeleteGraphqlApi"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"dynamodb:CreateTable",
"dynamodb:DescribeTable",
"dynamodb:DescribeContinuousBackups",
"dynamodb:DescribeTimeToLive",
"dynamodb:ListTagsOfResource",
"dynamodb:DeleteTable",
"dynamodb:TagResource"
],
"Resource": "arn:aws:dynamodb:eu-central-1:<aws-account-id>:table/mah-oum_Events"
},
{
"Effect": "Allow",
"Action": [
"dynamodb:CreateTable",
"dynamodb:TagResource"
],
"Resource": "arn:aws:dynamodb:eu-central-1:<aws-account-id>:table/mah-oum_Comments"
},
{
"Effect": "Allow",
"Action": [
"iam:CreateRole",
"iam:GetRole",
"iam:ListRolePolicies",
"iam:AttachRolePolicy",
"iam:DetachRolePolicy",
"iam:ListInstanceProfilesForRole",
"iam:DeleteRole",
"iam:ListAttachedRolePolicies",
"iam:PassRole"
],
"Resource": "arn:aws:iam::<aws-account-id>:role/mah-oum_iam_appsync_role"
},
{
"Effect": "Allow",
"Action": [
"iam:CreatePolicy",
"iam:GetPolicy",
"iam:GetPolicyVersion",
"iam:ListPolicyVersions",
"iam:DeletePolicy"
],
"Resource": "arn:aws:iam::<aws-account-id>:policy/mah-oum_iam_dynamodb_policy"
},
{
"Effect": "Allow",
"Action": [
"dynamodb:DescribeTable",
"dynamodb:DescribeContinuousBackups",
"dynamodb:DescribeTimeToLive",
"dynamodb:ListTagsOfResource",
"dynamodb:DeleteTable"
],
"Resource": "arn:aws:dynamodb:eu-central-1:<aws-account-id>:table/mah-oum_Comments"
}
]
}