-
Notifications
You must be signed in to change notification settings - Fork 0
/
cross_account_permissionPolicy.json
62 lines (62 loc) · 1.61 KB
/
cross_account_permissionPolicy.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
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ReadS3",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:ListBucket",
"s3:GetBucketLocation",
"s3:ListMultipartUploadParts",
"s3:AbortMultipartUpload",
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::arn:aws:s3:::athena-results-cache/*",
"arn:aws:s3:::arn:aws:s3:::athena-results-cache"
]
},
{
"Sid": "RunAthenaQueries",
"Effect": "Allow",
"Action": [
"athena:StartQueryExecution",
"athena:GetQueryExecution",
"athena:GetWorkGroup",
"athena:GetQueryRuntimeStatistics",
"athena:GetQueryResults",
"athena:ListNamedQueries",
"athena:ListQueryExecutions",
"athena:CreateNamedQuery",
"athena:DeleteNamedQuery",
"athena:UpdateNamedQuery",
"athena:GetNamedQuery",
"athena:BatchGetNamedQuery"
],
"Resource": [
"arn:aws:athena:<REGION>:<ACCOUNT_UID>:workgroup/<WORKGROUP_NAME>"
]
},
{
"Sid": "ReadGlue",
"Effect": "Allow",
"Action": [
"glue:GetDatabase",
"glue:GetTables",
"glue:GetTable",
"glue:GetPartitions"
],
"Resource": [
"arn:aws:glue:<REGION>:<ACCOUNT_UID>:catalog",
"arn:aws:glue:<REGION>:<ACCOUNT_UID>:database/amazon_security_lake_glue_db*",
"arn:aws:glue:<REGION>:<ACCOUNT_UID>:table/amazon_security_lake_glue_db*/*"
]
},
{
"Effect": "Allow",
"Action": ["lakeformation:GetDataAccess"],
"Resource": "*"
}
]
}