marmotdata/athena

Discover databases, tables, workgroups and saved queries from Amazon Athena

Registry Warehouses AWS Athena AWS Athena Warehouses AssetsLineageColumn Lineage Experimental Marmot >=0.13.0 Version 0.4.0 (latest)Version 0.3.0Version 0.2.0Version 0.1.2Version 0.1.1Version 0.1.0 Source(opens in a new tab) Install

The Athena plugin discovers data catalogs, databases, tables, views, workgroups and saved queries from Amazon Athena.

Athena keeps no catalog of its own: the tables it queries live in the Glue Data Catalog. Databases, tables and views are therefore filed under the Glue provider with the same names the Glue plugin uses, so an Athena run and a Glue run land on one asset. Names are the full path, <database>.<table> for the default AwsDataCatalog and <catalog>.<database>.<table> for any other catalog. Set zone to tell two accounts or regions apart (a name you choose, not a cloud availability zone); it becomes part of every MRN, for example mrn://asset/table/glue@prod-eu/shop.orders, and must match the zone set on the Glue plugin for the two to share assets. Workgroups, saved queries and data catalogs are Athena's own objects and are filed under Athena.

Databases and tables are read through the Athena metadata API, which also serves federated catalogs. When that API does not answer for a Glue-backed catalog, the plugin reads the Glue Data Catalog directly instead. Set metadata_api to athena or glue to pin the choice.

Query history is not read, so this plugin produces no usage statistics or query-derived table-to-table lineage.

Required Permissions

sts:GetCallerIdentity is only needed with tags_to_metadata, because Athena does not return workgroup or catalog ARNs and the plugin builds them from the account id.

AWS Configuration

See AWS Configuration for the supported AWS configuration options.

Keyless authentication

On Marmot Cloud or Marmot Enterprise the pipeline can present its own identity instead of access keys. Register your Marmot instance as an IAM OIDC identity provider (client id sts.amazonaws.com), create a role whose trust policy allows sts:AssumeRoleWithWebIdentity for that provider with <issuer host>:sub equal to the pipeline's subject, pipeline:<name> as reported by the pipeline API, and set credentials.role_arn and credentials.region. No key exists anywhere; Marmot mints a short-lived token for each run.