Integrating with external catalogs
Integrating with an external catalog is a way to populate the AWS Glue Data Catalog. You bring metadata that already exists in Databricks Unity Catalog and Snowflake Horizon Catalog into the Data Catalog as assets, without building your own pipeline. AWS Glue keeps these assets current on the schedule that you set.
Synced assets appear in the Data Catalog next to your AWS assets. You can discover them with Semantic search for AWS Glue Data Catalog and add business context to them with Adding business context.
Supported sources
You can integrate with the following external catalogs:
-
Databricks Unity Catalog
-
Snowflake Horizon Catalog
How integrating with external catalogs works
The following steps describe how an external catalog integration works. You do the first four steps, and AWS Glue does the rest:
-
You create an AWS Glue connection of type
DATABRICKSorSNOWFLAKE. The connection uses AWS Secrets Manager for the source credentials and stores only the ARN of the secret. -
You register the connection with Lake Formation for federation by setting
WithFederationtotrue. You must register the connection before you can create a catalog on it. -
You create a top-level federated catalog on the connection with the
ConnectionNameandConnectionType. AWS Glue creates one top-level catalog for the connection. Each Databricks catalog or Snowflake database appears as a child catalog under the top-level catalog. -
You turn on sync by adding a
SyncConfigurationto the federated catalog with theCreateCatalogorUpdateCatalogoperation. TheSyncConfigurationincludesRoleArn(the discovery and asset cataloging role),AssetsSyncConfiguration, and an optionalLineageSyncConfiguration. -
AWS Glue creates a managed crawler for the catalog. The crawler runs as the discovery and asset cataloging role on a schedule that you set with
RefreshIntervalMinutes. -
The managed crawler reads metadata from the source and writes it to the Data Catalog as synced assets. You can find synced assets with the
SearchAssetsoperation and read an asset with theGetAssetoperation.
An external catalog integration uses two IAM roles. The discovery and asset cataloging role is the role that the managed crawler runs as. The query engine credential-vending role is the role that Lake Formation assumes to vend credentials to query engines when the connection uses AWS vended credentials. For the requirements of each role, see Prerequisites for integrating with external catalogs.
A connection vends credentials to query engines in one of two modes. With AWS vended credentials, the default mode, Lake Formation assumes the query engine credential-vending role and vends credentials to the engine. With source vended credentials, the source vends the credentials to the query engine. Source vended credentials are available to first-party query engines only.
Key concepts
This section defines the following terms for external catalog integration:
- Federated catalog
-
A top-level Data Catalog catalog that AWS Glue creates for an AWS Glue connection. Each Databricks catalog or Snowflake database appears as a child catalog under the top-level catalog. You add a
SyncConfigurationto the federated catalog to turn on sync. - Discovery and asset cataloging role
-
The IAM role that the managed crawler runs as. For the requirements of this role, see Prerequisites for integrating with external catalogs.
- Query engine credential-vending role
-
The IAM role that Lake Formation assumes to vend AWS vended credentials to query engines. For the requirements of this role, see Prerequisites for integrating with external catalogs.
- Managed crawler
-
The crawler that AWS Glue creates and runs for a federated catalog when sync is on. The managed crawler is locked, and you manage it through the catalog, not directly. For more information, see Working with managed crawlers.
- Synced assets
-
The assets that the managed crawler writes to the Data Catalog from the source. Synced assets include metadata about the objects in the source catalog.
- Credential vending modes
-
How a connection vends credentials to query engines. With AWS vended credentials, the default mode, Lake Formation vends credentials through the query engine credential-vending role. With source vended credentials, the source vends the credentials.
Find synced assets
Synced assets appear in semantic search alongside your other Data Catalog assets. To
list only the assets from one external catalog, filter the SearchAssets
operation on the thirdparty::ThirdPartyResource.connectionArn attribute
with the ARN of the connection.
aws glue search-assets \ --filter-clause '{ "AttributeFilter": { "Attribute": "thirdparty::ThirdPartyResource.connectionArn", "Operator": "equals", "Value": {"StringValue": "connection-arn"} } }'
For more information about semantic search, see Semantic search for AWS Glue Data Catalog.
Considerations and limitations
For the considerations and limitations that apply across external catalog integration, including per source notes, see Considerations and limitations.
Next steps
To start syncing metadata, first set up the prerequisites. Then create a connection and turn on sync for your source.