Linking AWS Glue Data Catalog as a source
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.

The AWS Glue Data Catalog connector syncs your Glue metadata, jobs, crawlers, and workflow history into PostHog, so you can analyze your data catalog alongside your product data.
Prerequisites
You need an AWS account with Glue enabled in the region you want to sync from.
You also need an IAM user or role with the required Glue read permissions. The exact permissions depend on which tables you want to sync – see Creating IAM credentials below.
Lake Formation permissions can also restrict catalog access. If you use Lake Formation, make sure the IAM principal has read access to the databases and tables you want to sync.
Adding a data source
- In PostHog, go to the Sources tab of the data pipeline section.
- Click + New source and click Link next to this source.
- Enter your credentials (see Configuration below) and click Next.
- Select the tables you want to sync, choose a sync method and frequency, then click Import.
Once the syncs are complete, you can start querying this data in PostHog.
When linking AWS Glue Data Catalog, you'll need:
- AWS access key ID – the access key ID for your IAM user or role (starts with
AKIA...). - AWS secret access key – the corresponding secret access key.
- AWS session token (optional) – only required if you are using temporary STS credentials. Temporary credentials expire, so replace them before the next scheduled sync.
- AWS region – the region to sync from (for example,
us-east-1). Each source connection syncs from one region.
Creating IAM credentials
- In the AWS Console, go to IAM > Users and create a new user (or use an existing one).
- Attach a policy with the permissions for the tables you want to sync:
You can scope this down to only the permissions you need:
| Tables | Required permissions |
|---|---|
databases, tables, partitions, table_versions | glue:GetDatabases, glue:GetTables, glue:GetPartitions, glue:GetTableVersions |
jobs, job_runs | glue:GetJobs, glue:GetJobRuns |
crawlers, crawls | glue:GetCrawlers, glue:ListCrawls |
workflow_runs | glue:ListWorkflows, glue:GetWorkflowRuns |
data_quality_results | glue:ListDataQualityResults |
data_quality_rulesets | glue:ListDataQualityRulesets |
triggers | glue:GetTriggers |
connections | glue:GetConnections |
schema_registries | glue:ListRegistries |
schemas | glue:ListSchemas |
schema_versions | glue:ListSchemaVersions |
- Create an access key for the user under Security credentials > Access keys.
- Copy the Access key ID and Secret access key – you'll need both when linking the source in PostHog.
Sync modes
Each table can be synced in one of several modes, depending on what the source supports:
- Webhook (when available) – the source pushes changes to PostHog in real time. Fastest freshness, lowest ongoing cost, and the only mode that reliably captures updates and deletes.
- Incremental – only new or updated rows are synced on each run, using a cursor field (such as an
updated_attimestamp). Cheaper than a full refresh, but deletes aren't captured. - Append only – new rows are appended using a cursor field; existing rows are never updated. Ideal for immutable, append-only tables like event logs.
- Full refresh – the whole table is reloaded on every sync. Use it when a table has no reliable cursor or when you need deletions reflected.
See sync methods for a full explanation of how each mode works and how to choose between them.
All AWS Glue Data Catalog tables are full refresh. Each sync replaces the contents of the table.
Configuration
| Option | Description |
|---|---|
AWS access key IDType: text Required: True | |
AWS secret access keyType: password Required: True | |
AWS session tokenType: password Required: False | Temporary credentials expire. Replace them before the next scheduled sync. |
AWS regionType: text Required: True |
Supported tables
| Table | Description | Sync method | Incremental field | Primary key |
|---|---|---|---|---|
databases | Databases in the account's default Data Catalog. | Full refresh | — | — |
tables | Table definitions, columns, and storage metadata for each database. | Full refresh | — | — |
partitions | Partition values and storage metadata for each table. | Full refresh | — | — |
jobs | Job definitions and execution settings. | Full refresh | — | — |
job_runs | Job execution history, status, duration, and resource usage. | Full refresh |





