Last active
June 26, 2022 01:58
-
-
Save garystafford/5aa5c1aa1bc1b75b42520419d8187cbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"athena:StartQueryExecution", | |
"athena:CreatePreparedStatement", | |
"athena:ListPreparedStatements", | |
"glue:CreateTable", | |
"athena:CreateNamedQuery", | |
"athena:ListNamedQueries", | |
"athena:GetTableMetadata", | |
"athena:GetPreparedStatement", | |
"athena:GetQueryResults", | |
"athena:GetQueryExecution", | |
"athena:GetNamedQuery" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"glue:BatchGetPartition", | |
"glue:GetTable" | |
], | |
"Resource": [ | |
"*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:GetBucketLocation", | |
"s3:GetObject", | |
"s3:ListBucket", | |
"s3:ListBucketMultipartUploads", | |
"s3:ListMultipartUploadParts", | |
"s3:AbortMultipartUpload", | |
"s3:CreateBucket", | |
"s3:PutObject", | |
"s3:PutBucketPublicAccessBlock" | |
], | |
"Resource": [ | |
"arn:aws:s3:::aws-athena-query-results-*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:GetObject", | |
"s3:ListBucket" | |
], | |
"Resource": [ | |
"arn:aws:s3:::date-lake-demo-*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListBucket", | |
"s3:GetBucketLocation", | |
"s3:ListAllMyBuckets" | |
], | |
"Resource": [ | |
"*" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment