For engineers connecting an Athena database so agents understand its tables.
Updated
To connect Athena, run brainbox ingest with an athena://region/database URL. AWS credentials come from the standard AWS credential chain, not the URL. Athena has no enforced keys or indexes, so tables and columns are read and you declare keys and joins in your docs.
Make sure your AWS credentials are available in the environment the CLI runs in, then ingest. By default the CLI reads schema metadata only, never rows. Opt-in column profiling (--profile-data, on meta ingest db) samples rows to compute statistics, and full mode also sends enum values and JSON key shapes.
npx -y @brainbox-labs/cli@latest ingest "athena://us-east-1/mydb?workgroup=primary" --reviewWrite keys, joins, units and rules in a data dictionary and sync it, so agents can tell tables apart and join them correctly.
| Option | Meaning |
|---|---|
| region/database | The AWS region and the Athena database |
| ?catalog= | The data catalog |
| ?workgroup= | The workgroup to run in |
| ?output= | The query result location |
| ?pollTimeoutMs= | How long a query is polled before failing |