Skip to main content

datacontract import athena

Import a data contract from an Amazon Athena database.

datacontract import athena [OPTIONS]
OptionDefaultDescription
--schemaThe Athena database name (called schema in the contract).
--staging-dirS3 location where Athena writes query results, e.g. s3://my-bucket/athena-results/.
--regionThe AWS region the Glue Data Catalog lives in.
--catalogThe Athena catalog (default awsdatacatalog).
--tableName of a table to import (repeat for multiple tables, omit for all tables in the schema).
--outputFile path where the Data Contract will be saved. If not provided, it will be printed to stdout.
--ownerThe owner or team responsible for managing the data contract.
--idThe identifier for the data contract.
--debug / --no-debugEnable debug logging
datacontract import athena --schema my_database --staging-dir s3://my-bucket/athena-results/ --output datacontract.yaml

Guide: Import: Amazon Athena.