Skip to content

Repository

Requirements

Name Version
terraform >= 1.7
dbtcloud ~> 1.9

Providers

Name Version
dbtcloud 1.9.1

Modules

No modules.

Resources

Name Type
dbtcloud_repository.protected_repositories resource
dbtcloud_repository.repositories resource
dbtcloud_privatelink_endpoints.all data source

Inputs

Name Description Type Default Required
project_ids Map of project key to dbt Cloud project ID (from modules/project output) map(string) n/a yes
projects List of project configurations. Each project may have a 'repository' sub-object with git configuration. any n/a yes
dbt_pat Personal access token for GitHub App integration discovery. If set, github_app strategy is enabled even without an explicit installation ID. string null no
enable_gitlab_deploy_token Preserve native GitLab deploy_token strategy. Defaults to false due to known API limitations. Set to true only when GitLab OAuth access is confirmed. bool false no
github_installation_by_owner Lowercase GitHub org/user login → installation id (from module data_lookups when dbt_pat is set). Used to set github_installation_id when not in YAML. map(any) {} no
github_installation_fallback_id First GitHub App installation id in the account when owner-based match fails (from module data_lookups) number null no
privatelink_endpoints Optional account-level PrivateLink registry (key + endpoint_id) for resolving repository.private_link_endpoint_key list(any) [] no

Outputs

Name Description
protected_repository_keys Project keys whose dbtcloud_repository uses lifecycle.prevent_destroy (for module.project_repository split).
repository_ids Map of project key to repository_id (integer ID used for project_repository links)