Created
April 25, 2023 22:06
-
-
Save statico/f0ea88130b77028fcced1fd9281d922d to your computer and use it in GitHub Desktop.
Metabase Athena Policy
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": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"athena:StartQueryExecution", | |
"athena:ListDataCatalogs", | |
"glue:GetTableVersions", | |
"glue:GetPartitions", | |
"athena:GetQueryResults", | |
"athena:ListWorkGroups", | |
"athena:DeletePreparedStatement", | |
"athena:GetNamedQuery", | |
"athena:ListQueryExecutions", | |
"athena:GetWorkGroup", | |
"glue:GetTableVersion", | |
"athena:StopQueryExecution", | |
"athena:CreatePreparedStatement", | |
"athena:GetQueryResultsStream", | |
"glue:GetTables", | |
"glue:BatchGetPartition", | |
"glue:GetDatabases", | |
"athena:GetPreparedStatement", | |
"athena:ListTagsForResource", | |
"glue:GetTable", | |
"athena:ListNamedQueries", | |
"glue:GetDatabase", | |
"glue:GetPartition", | |
"athena:ListDatabases", | |
"athena:GetQueryExecution", | |
"athena:BatchGetNamedQuery", | |
"athena:ListTableMetadata", | |
"athena:BatchGetQueryExecution" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Sid": "VisualEditor1", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:GetObject", | |
"s3:ListBucket", | |
"s3:GetBucketLocation" | |
], | |
"Resource": [ | |
"arn:aws:s3:::x-athena-queries", | |
"arn:aws:s3:::x-athena-queries/*" | |
] | |
}, | |
{ | |
"Sid": "VisualEditor2", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:PutObject", | |
"s3:GetObject", | |
"s3:AbortMultipartUpload", | |
"s3:ListBucket", | |
"s3:GetBucketLocation" | |
], | |
"Resource": [ | |
"arn:aws:s3:::x-athena-queries", | |
"arn:aws:s3:::x-athena-queries/*" | |
] | |
}, | |
{ | |
"Sid": "VisualEditor3", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:GetObject", | |
"s3:ListBucket", | |
"s3:GetBucketLocation" | |
], | |
"Resource": [ | |
"arn:aws:s3:::x-ads-events/*", | |
"arn:aws:s3:::x-ads-events" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment