Skip to content

Instantly share code, notes, and snippets.

@mtheoryx
Created October 15, 2026 19:49
Show Gist options
  • Select an option

  • Save mtheoryx/fcb443c6139ced1d41fa520da962f87a to your computer and use it in GitHub Desktop.

Select an option

Save mtheoryx/fcb443c6139ced1d41fa520da962f87a to your computer and use it in GitHub Desktop.
Athena Permissions
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AthenaRunQueries",
"Effect": "Allow",
"Action": [
"athena:StartQueryExecution",
"athena:StopQueryExecution",
"athena:GetQueryExecution",
"athena:GetQueryResults",
"athena:BatchGetQueryExecution",
"athena:GetWorkGroup",
"athena:ListWorkGroups"
],
"Resource": "arn:aws:athena:us-east-1:411294620421:workgroup/primary"
},
{
"Sid": "AthenaResultsBucket",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource": [
"arn:aws:s3:::query-results-sv-ncaa-org",
"arn:aws:s3:::query-results-sv-ncaa-org/*"
]
},
{
"Sid": "ReadCloudTrailLogs",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::aws-cloudtrail-logs-411294620421-*",
"arn:aws:s3:::aws-cloudtrail-logs-411294620421-*/*"
]
},
{
"Sid": "GlueTableDefinitions",
"Effect": "Allow",
"Action": [
"glue:CreateDatabase",
"glue:CreateTable",
"glue:GetTable",
"glue:GetTables",
"glue:GetDatabase",
"glue:GetDatabases",
"glue:GetPartitions",
"glue:CreatePartition",
"glue:BatchCreatePartition"
],
"Resource": "*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment