# Import: AWS Glue

> Create a data contract from the AWS Glue Data Catalog.

#  Import: AWS Glue

Creates a data contract from the AWS Glue Data Catalog.

```bash
# Import specific tables from a Glue database
datacontract import glue --database my_database --table orders --table line_items

# Import all tables in the database
datacontract import glue --database my_database
```

AWS credentials are resolved from the standard AWS environment / configuration (e.g. `AWS_PROFILE`, `AWS_REGION`).

:::note
`datacontract test` cannot connect to Glue directly. To test the actual data, replace the generated `servers` entry with the underlying storage — typically [Amazon S3](../testing/s3.md) or [Amazon Athena](../testing/athena.md).
:::

All options: **[`datacontract import glue`](../commands/import/glue.md)**.
