Athena
Create a workgroup for Aporia queries
Update the Aporia IAM role for Athena access
Step 1: Obtain your aporia IAM role
Step 2: Create an access policy


{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:ListBucket", "s3:GetBucketLocation" ], "Resource": [ "arn:aws:s3:::<data-bucket>", "arn:aws:s3:::<results-bucket>" ] }, { "Effect": "Allow", "Action": "s3:GetObject", "Resource": [ "arn:aws:s3:::<data-bucket>/*", "arn:aws:s3:::<results-bucket>/*" ] }, { "Effect": "Allow", "Action": "s3:PutObject", "Resource": [ "arn:aws:s3:::<results-bucket>/*" ] }, { "Effect": "Allow", "Action": [ "athena:StartQueryExecution", "athena:StopQueryExecution", "athena:GetQueryResults" ], "Resource": "arn:aws:athena:<region>:<account-id>:workgroup/<aporia-workgroup>" }, { "Effect": "Allow", "Action": "athena:ListWorkGroups", "Resource": "*" }, { "Effect": "Allow", "Action": "athena:ListDatabases", "Resource": [ "arn:aws:athena:<region>:<account-id>:datacatalog/*" ] }, { "Effect": "Allow", "Action": "glue:GetDatabases", "Resource": [ "arn:aws:glue:<region>:<account-id>:catalog", "arn:aws:glue:<region>:<account-id>:database/<database-name>" ] }, { "Effect": "Allow", "Action": [ "athena:GetQueryExecution", "athena:BatchGetQueryExecution", "athena:ListQueryExecutions", "athena:GetWorkGroup" ], "Resource": [ "arn:aws:athena:<region>:<account-id>:workgroup/*", "arn:aws:athena:<region>:<account-id>:datacatalog/*" ] }, { "Effect": "Allow", "Action": [ "athena:CreatePreparedStatement", "athena:DeletePreparedStatement", "athena:ListPreparedStatements", "athena:GetPreparedStatement", "athena:GetQueryResultsStream" ], "Resource": [ "arn:aws:athena:${AWS::Region}:${AWS::AccountId}:workgroup/*", "arn:aws:athena:${AWS::Region}:${AWS::AccountId}:datacatalog/*", "arn:aws:athena:${AWS::Region}:${AWS::AccountId}:table/*" ] }, { "Effect": "Allow", "Action": [ "glue:GetTables", "glue:GetTable", "glue:GetPartitions", "glue:GetPartition" ], "Resource": [ "arn:aws:glue:<region>:<account-id>:catalog", "arn:aws:glue:<region>:<account-id>:database/<database-name>", "arn:aws:glue:<region>:<account-id>:table/<database-name>/*" ] } ] }
Create an Athena data source in Aporia
Last updated