Skip to content

Add support for Catalog Metadata Ingestion #585

@joaoclemencio-dbtlabs

Description

@joaoclemencio-dbtlabs

Is your feature request related to a problem? Please describe.

External Metadata Ingestion isn't supported yet by the dbtcloud_account_features resource.

Describe the solution you'd like

Not sure if this should all be in a single issue, but as I can find there are at least 3 configurations required:

  • Add the flag to the list of supported features. In the UI, this is triggered by the same API call as the others (POST to https://{dbtcloud_host}/api/private/accounts/{account_id}/features/) with the payload {feature: "catalog-ingestion", value: true}
  • Add a database credentials resource to query the database metadata. In the UI, this is set in the Connection, specifically via a PATCH to https://{dbtcloud_host}/api/v3/accounts/{account_id}/platform-metadata-credentials/
  • Add a catalog-configs resource that applies filters to the connection the credentials have been applied to. This is also a PATCH, but to https://{dbtcloud_host}/api/v3/accounts/{account_id}/connections/{connection with metadata credentials}/catalog-configs/ with an allow/deny list payload:
{
  "database_allow": [],
  "database_deny": [],
  "schema_allow": [],
  "schema_deny": [],
  "table_allow": [],
  "table_deny": [],
  "view_allow": [],
  "view_deny": []
}

Describe alternatives you've considered

Manually setting it in the UI; potentially querying the API separately but would prefer terraform

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions