
Amazon Athena
Let AI connect your sources for you
Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Connect Amazon Athena to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Sync tables from an AWS Glue database through Amazon Athena into the PostHog Data warehouse.
Create an IAM user or role with glue:GetDatabase, glue:GetTables, glue:GetTable, glue:GetPartitions, glue:GetPartition, glue:BatchGetPartition, athena:GetWorkGroup, athena:StartQueryExecution, athena:GetQueryExecution, athena:GetQueryResults and athena:StopQueryExecution, plus read access to the tables' S3 data and read and write access to the query result location. Connect with the IAM role, or paste an access key ID and secret access key.
Each sync runs one Athena query per table, which Athena bills by the data it scans. An incremental sync filters on the chosen column, so a partitioned table keyed on that column scans less.
Configuration
| Option | Description |
|---|---|
AuthenticationType: select Required: True | With an IAM role, PostHog reads with short-lived credentials and stores no key. Create a role connection with your role's ARN, then grant the role the permissions listed above. |
AWS regionType: text Required: True | |
Glue databaseType: text Required: True | |
Athena workgroup (defaults to primary)Type: text Required: False | |
S3 output location (only when the workgroup has none)Type: text Required: False |
Linking Amazon Athena to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select Amazon Athena
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import
Supported tables
The tables available from this source are discovered from your account when you connect it, so the exact list depends on your data. Once connected, you can pick which tables to sync from the sources tab.





