dbtcloud.Repository
Explore with Pulumi AI
This resource allows you to manage connections to git repositories in dbt Cloud.
By itself, this resource won’t show you the repository in the dbt Cloud UI.
You will need to also set up a dbtcloud.ProjectRepository
resource as well to link your dbt Cloud project and the git repository.
In order to find the github_installation_id
, you can log in to dbt Cloud, replace <dbt_cloud_url>
by your dbt Cloud
URL and run the following commands in the Google Chrome console:
dbt_cloud_api_result = await (fetch('https://<dbt_cloud_url>/api/v2/integrations/github/installations/').then(res => res.json()));
console.log("github_application_id: " + dbt_cloud_api_result.filter(res => res["access_tokens_url"].includes("github"))[0]["id"]);
Alternatively, you can go to the page https://<dbt_cloud_url>/api/v2/integrations/github/installations/
and read the
value of id
or use the http
provider to retrieve it automatically like in the example below.
Create Repository Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Repository(name: string, args: RepositoryArgs, opts?: CustomResourceOptions);
@overload
def Repository(resource_name: str,
args: RepositoryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Repository(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[int] = None,
remote_url: Optional[str] = None,
azure_active_directory_project_id: Optional[str] = None,
azure_active_directory_repository_id: Optional[str] = None,
azure_bypass_webhook_registration_failure: Optional[bool] = None,
fetch_deploy_key: Optional[bool] = None,
git_clone_strategy: Optional[str] = None,
github_installation_id: Optional[int] = None,
gitlab_project_id: Optional[int] = None,
is_active: Optional[bool] = None,
pull_request_url_template: Optional[str] = None)
func NewRepository(ctx *Context, name string, args RepositoryArgs, opts ...ResourceOption) (*Repository, error)
public Repository(string name, RepositoryArgs args, CustomResourceOptions? opts = null)
public Repository(String name, RepositoryArgs args)
public Repository(String name, RepositoryArgs args, CustomResourceOptions options)
type: dbtcloud:Repository
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RepositoryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var repositoryResource = new DbtCloud.Repository("repositoryResource", new()
{
ProjectId = 0,
RemoteUrl = "string",
AzureActiveDirectoryProjectId = "string",
AzureActiveDirectoryRepositoryId = "string",
AzureBypassWebhookRegistrationFailure = false,
GitCloneStrategy = "string",
GithubInstallationId = 0,
GitlabProjectId = 0,
IsActive = false,
PullRequestUrlTemplate = "string",
});
example, err := dbtcloud.NewRepository(ctx, "repositoryResource", &dbtcloud.RepositoryArgs{
ProjectId: pulumi.Int(0),
RemoteUrl: pulumi.String("string"),
AzureActiveDirectoryProjectId: pulumi.String("string"),
AzureActiveDirectoryRepositoryId: pulumi.String("string"),
AzureBypassWebhookRegistrationFailure: pulumi.Bool(false),
GitCloneStrategy: pulumi.String("string"),
GithubInstallationId: pulumi.Int(0),
GitlabProjectId: pulumi.Int(0),
IsActive: pulumi.Bool(false),
PullRequestUrlTemplate: pulumi.String("string"),
})
var repositoryResource = new Repository("repositoryResource", RepositoryArgs.builder()
.projectId(0)
.remoteUrl("string")
.azureActiveDirectoryProjectId("string")
.azureActiveDirectoryRepositoryId("string")
.azureBypassWebhookRegistrationFailure(false)
.gitCloneStrategy("string")
.githubInstallationId(0)
.gitlabProjectId(0)
.isActive(false)
.pullRequestUrlTemplate("string")
.build());
repository_resource = dbtcloud.Repository("repositoryResource",
project_id=0,
remote_url="string",
azure_active_directory_project_id="string",
azure_active_directory_repository_id="string",
azure_bypass_webhook_registration_failure=False,
git_clone_strategy="string",
github_installation_id=0,
gitlab_project_id=0,
is_active=False,
pull_request_url_template="string")
const repositoryResource = new dbtcloud.Repository("repositoryResource", {
projectId: 0,
remoteUrl: "string",
azureActiveDirectoryProjectId: "string",
azureActiveDirectoryRepositoryId: "string",
azureBypassWebhookRegistrationFailure: false,
gitCloneStrategy: "string",
githubInstallationId: 0,
gitlabProjectId: 0,
isActive: false,
pullRequestUrlTemplate: "string",
});
type: dbtcloud:Repository
properties:
azureActiveDirectoryProjectId: string
azureActiveDirectoryRepositoryId: string
azureBypassWebhookRegistrationFailure: false
gitCloneStrategy: string
githubInstallationId: 0
gitlabProjectId: 0
isActive: false
projectId: 0
pullRequestUrlTemplate: string
remoteUrl: string
Repository Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Repository resource accepts the following input properties:
- Project
Id int - Project ID to create the repository in
- Remote
Url string - Git URL for the repository or / for Gitlab
- Azure
Active stringDirectory Project Id - The Azure Dev Ops project ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsProject
and the project name - (for ADO native integration only) - Azure
Active stringDirectory Repository Id - The Azure Dev Ops repository ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsRepository
along with the ADO Project ID and the repository name - (for ADO native integration only) - Azure
Bypass boolWebhook Registration Failure - If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks (required for auto-triggering CI jobs). If set to True, the connection will be successful but no automated CI job will be triggered - (for ADO native integration only)
- Fetch
Deploy boolKey - Whether we should return the public deploy key - (for the
deploy_key
strategy) - Git
Clone stringStrategy - Git clone strategy for the repository. Can be
deploy_key
(default) for cloning via SSH Deploy Key,github_app
for GitHub native integration,deploy_token
for the GitLab native integration andazure_active_directory_app
for ADO native integration - Github
Installation intId - Identifier for the GitHub App - (for GitHub native integration only)
- Gitlab
Project intId - Identifier for the Gitlab project - (for GitLab native integration only)
- Is
Active bool - Whether the repository is active
- Pull
Request stringUrl Template - URL template for creating a pull request. If it is not set, the default template will create a PR from the current branch to the branch configured in the Development environment.
- Project
Id int - Project ID to create the repository in
- Remote
Url string - Git URL for the repository or / for Gitlab
- Azure
Active stringDirectory Project Id - The Azure Dev Ops project ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsProject
and the project name - (for ADO native integration only) - Azure
Active stringDirectory Repository Id - The Azure Dev Ops repository ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsRepository
along with the ADO Project ID and the repository name - (for ADO native integration only) - Azure
Bypass boolWebhook Registration Failure - If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks (required for auto-triggering CI jobs). If set to True, the connection will be successful but no automated CI job will be triggered - (for ADO native integration only)
- Fetch
Deploy boolKey - Whether we should return the public deploy key - (for the
deploy_key
strategy) - Git
Clone stringStrategy - Git clone strategy for the repository. Can be
deploy_key
(default) for cloning via SSH Deploy Key,github_app
for GitHub native integration,deploy_token
for the GitLab native integration andazure_active_directory_app
for ADO native integration - Github
Installation intId - Identifier for the GitHub App - (for GitHub native integration only)
- Gitlab
Project intId - Identifier for the Gitlab project - (for GitLab native integration only)
- Is
Active bool - Whether the repository is active
- Pull
Request stringUrl Template - URL template for creating a pull request. If it is not set, the default template will create a PR from the current branch to the branch configured in the Development environment.
- project
Id Integer - Project ID to create the repository in
- remote
Url String - Git URL for the repository or / for Gitlab
- azure
Active StringDirectory Project Id - The Azure Dev Ops project ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsProject
and the project name - (for ADO native integration only) - azure
Active StringDirectory Repository Id - The Azure Dev Ops repository ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsRepository
along with the ADO Project ID and the repository name - (for ADO native integration only) - azure
Bypass BooleanWebhook Registration Failure - If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks (required for auto-triggering CI jobs). If set to True, the connection will be successful but no automated CI job will be triggered - (for ADO native integration only)
- fetch
Deploy BooleanKey - Whether we should return the public deploy key - (for the
deploy_key
strategy) - git
Clone StringStrategy - Git clone strategy for the repository. Can be
deploy_key
(default) for cloning via SSH Deploy Key,github_app
for GitHub native integration,deploy_token
for the GitLab native integration andazure_active_directory_app
for ADO native integration - github
Installation IntegerId - Identifier for the GitHub App - (for GitHub native integration only)
- gitlab
Project IntegerId - Identifier for the Gitlab project - (for GitLab native integration only)
- is
Active Boolean - Whether the repository is active
- pull
Request StringUrl Template - URL template for creating a pull request. If it is not set, the default template will create a PR from the current branch to the branch configured in the Development environment.
- project
Id number - Project ID to create the repository in
- remote
Url string - Git URL for the repository or / for Gitlab
- azure
Active stringDirectory Project Id - The Azure Dev Ops project ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsProject
and the project name - (for ADO native integration only) - azure
Active stringDirectory Repository Id - The Azure Dev Ops repository ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsRepository
along with the ADO Project ID and the repository name - (for ADO native integration only) - azure
Bypass booleanWebhook Registration Failure - If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks (required for auto-triggering CI jobs). If set to True, the connection will be successful but no automated CI job will be triggered - (for ADO native integration only)
- fetch
Deploy booleanKey - Whether we should return the public deploy key - (for the
deploy_key
strategy) - git
Clone stringStrategy - Git clone strategy for the repository. Can be
deploy_key
(default) for cloning via SSH Deploy Key,github_app
for GitHub native integration,deploy_token
for the GitLab native integration andazure_active_directory_app
for ADO native integration - github
Installation numberId - Identifier for the GitHub App - (for GitHub native integration only)
- gitlab
Project numberId - Identifier for the Gitlab project - (for GitLab native integration only)
- is
Active boolean - Whether the repository is active
- pull
Request stringUrl Template - URL template for creating a pull request. If it is not set, the default template will create a PR from the current branch to the branch configured in the Development environment.
- project_
id int - Project ID to create the repository in
- remote_
url str - Git URL for the repository or / for Gitlab
- azure_
active_ strdirectory_ project_ id - The Azure Dev Ops project ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsProject
and the project name - (for ADO native integration only) - azure_
active_ strdirectory_ repository_ id - The Azure Dev Ops repository ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsRepository
along with the ADO Project ID and the repository name - (for ADO native integration only) - azure_
bypass_ boolwebhook_ registration_ failure - If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks (required for auto-triggering CI jobs). If set to True, the connection will be successful but no automated CI job will be triggered - (for ADO native integration only)
- fetch_
deploy_ boolkey - Whether we should return the public deploy key - (for the
deploy_key
strategy) - git_
clone_ strstrategy - Git clone strategy for the repository. Can be
deploy_key
(default) for cloning via SSH Deploy Key,github_app
for GitHub native integration,deploy_token
for the GitLab native integration andazure_active_directory_app
for ADO native integration - github_
installation_ intid - Identifier for the GitHub App - (for GitHub native integration only)
- gitlab_
project_ intid - Identifier for the Gitlab project - (for GitLab native integration only)
- is_
active bool - Whether the repository is active
- pull_
request_ strurl_ template - URL template for creating a pull request. If it is not set, the default template will create a PR from the current branch to the branch configured in the Development environment.
- project
Id Number - Project ID to create the repository in
- remote
Url String - Git URL for the repository or / for Gitlab
- azure
Active StringDirectory Project Id - The Azure Dev Ops project ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsProject
and the project name - (for ADO native integration only) - azure
Active StringDirectory Repository Id - The Azure Dev Ops repository ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsRepository
along with the ADO Project ID and the repository name - (for ADO native integration only) - azure
Bypass BooleanWebhook Registration Failure - If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks (required for auto-triggering CI jobs). If set to True, the connection will be successful but no automated CI job will be triggered - (for ADO native integration only)
- fetch
Deploy BooleanKey - Whether we should return the public deploy key - (for the
deploy_key
strategy) - git
Clone StringStrategy - Git clone strategy for the repository. Can be
deploy_key
(default) for cloning via SSH Deploy Key,github_app
for GitHub native integration,deploy_token
for the GitLab native integration andazure_active_directory_app
for ADO native integration - github
Installation NumberId - Identifier for the GitHub App - (for GitHub native integration only)
- gitlab
Project NumberId - Identifier for the Gitlab project - (for GitLab native integration only)
- is
Active Boolean - Whether the repository is active
- pull
Request StringUrl Template - URL template for creating a pull request. If it is not set, the default template will create a PR from the current branch to the branch configured in the Development environment.
Outputs
All input properties are implicitly available as output properties. Additionally, the Repository resource produces the following output properties:
- Deploy
Key string - Public key generated by dbt when using
deploy_key
clone strategy - Id string
- The provider-assigned unique ID for this managed resource.
- Repository
Credentials intId - Credentials ID for the repository (From the repository side not the dbt Cloud ID)
- Repository
Id int - Repository Identifier
- Deploy
Key string - Public key generated by dbt when using
deploy_key
clone strategy - Id string
- The provider-assigned unique ID for this managed resource.
- Repository
Credentials intId - Credentials ID for the repository (From the repository side not the dbt Cloud ID)
- Repository
Id int - Repository Identifier
- deploy
Key String - Public key generated by dbt when using
deploy_key
clone strategy - id String
- The provider-assigned unique ID for this managed resource.
- repository
Credentials IntegerId - Credentials ID for the repository (From the repository side not the dbt Cloud ID)
- repository
Id Integer - Repository Identifier
- deploy
Key string - Public key generated by dbt when using
deploy_key
clone strategy - id string
- The provider-assigned unique ID for this managed resource.
- repository
Credentials numberId - Credentials ID for the repository (From the repository side not the dbt Cloud ID)
- repository
Id number - Repository Identifier
- deploy_
key str - Public key generated by dbt when using
deploy_key
clone strategy - id str
- The provider-assigned unique ID for this managed resource.
- repository_
credentials_ intid - Credentials ID for the repository (From the repository side not the dbt Cloud ID)
- repository_
id int - Repository Identifier
- deploy
Key String - Public key generated by dbt when using
deploy_key
clone strategy - id String
- The provider-assigned unique ID for this managed resource.
- repository
Credentials NumberId - Credentials ID for the repository (From the repository side not the dbt Cloud ID)
- repository
Id Number - Repository Identifier
Look up Existing Repository Resource
Get an existing Repository resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RepositoryState, opts?: CustomResourceOptions): Repository
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
azure_active_directory_project_id: Optional[str] = None,
azure_active_directory_repository_id: Optional[str] = None,
azure_bypass_webhook_registration_failure: Optional[bool] = None,
deploy_key: Optional[str] = None,
fetch_deploy_key: Optional[bool] = None,
git_clone_strategy: Optional[str] = None,
github_installation_id: Optional[int] = None,
gitlab_project_id: Optional[int] = None,
is_active: Optional[bool] = None,
project_id: Optional[int] = None,
pull_request_url_template: Optional[str] = None,
remote_url: Optional[str] = None,
repository_credentials_id: Optional[int] = None,
repository_id: Optional[int] = None) -> Repository
func GetRepository(ctx *Context, name string, id IDInput, state *RepositoryState, opts ...ResourceOption) (*Repository, error)
public static Repository Get(string name, Input<string> id, RepositoryState? state, CustomResourceOptions? opts = null)
public static Repository get(String name, Output<String> id, RepositoryState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Azure
Active stringDirectory Project Id - The Azure Dev Ops project ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsProject
and the project name - (for ADO native integration only) - Azure
Active stringDirectory Repository Id - The Azure Dev Ops repository ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsRepository
along with the ADO Project ID and the repository name - (for ADO native integration only) - Azure
Bypass boolWebhook Registration Failure - If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks (required for auto-triggering CI jobs). If set to True, the connection will be successful but no automated CI job will be triggered - (for ADO native integration only)
- Deploy
Key string - Public key generated by dbt when using
deploy_key
clone strategy - Fetch
Deploy boolKey - Whether we should return the public deploy key - (for the
deploy_key
strategy) - Git
Clone stringStrategy - Git clone strategy for the repository. Can be
deploy_key
(default) for cloning via SSH Deploy Key,github_app
for GitHub native integration,deploy_token
for the GitLab native integration andazure_active_directory_app
for ADO native integration - Github
Installation intId - Identifier for the GitHub App - (for GitHub native integration only)
- Gitlab
Project intId - Identifier for the Gitlab project - (for GitLab native integration only)
- Is
Active bool - Whether the repository is active
- Project
Id int - Project ID to create the repository in
- Pull
Request stringUrl Template - URL template for creating a pull request. If it is not set, the default template will create a PR from the current branch to the branch configured in the Development environment.
- Remote
Url string - Git URL for the repository or / for Gitlab
- Repository
Credentials intId - Credentials ID for the repository (From the repository side not the dbt Cloud ID)
- Repository
Id int - Repository Identifier
- Azure
Active stringDirectory Project Id - The Azure Dev Ops project ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsProject
and the project name - (for ADO native integration only) - Azure
Active stringDirectory Repository Id - The Azure Dev Ops repository ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsRepository
along with the ADO Project ID and the repository name - (for ADO native integration only) - Azure
Bypass boolWebhook Registration Failure - If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks (required for auto-triggering CI jobs). If set to True, the connection will be successful but no automated CI job will be triggered - (for ADO native integration only)
- Deploy
Key string - Public key generated by dbt when using
deploy_key
clone strategy - Fetch
Deploy boolKey - Whether we should return the public deploy key - (for the
deploy_key
strategy) - Git
Clone stringStrategy - Git clone strategy for the repository. Can be
deploy_key
(default) for cloning via SSH Deploy Key,github_app
for GitHub native integration,deploy_token
for the GitLab native integration andazure_active_directory_app
for ADO native integration - Github
Installation intId - Identifier for the GitHub App - (for GitHub native integration only)
- Gitlab
Project intId - Identifier for the Gitlab project - (for GitLab native integration only)
- Is
Active bool - Whether the repository is active
- Project
Id int - Project ID to create the repository in
- Pull
Request stringUrl Template - URL template for creating a pull request. If it is not set, the default template will create a PR from the current branch to the branch configured in the Development environment.
- Remote
Url string - Git URL for the repository or / for Gitlab
- Repository
Credentials intId - Credentials ID for the repository (From the repository side not the dbt Cloud ID)
- Repository
Id int - Repository Identifier
- azure
Active StringDirectory Project Id - The Azure Dev Ops project ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsProject
and the project name - (for ADO native integration only) - azure
Active StringDirectory Repository Id - The Azure Dev Ops repository ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsRepository
along with the ADO Project ID and the repository name - (for ADO native integration only) - azure
Bypass BooleanWebhook Registration Failure - If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks (required for auto-triggering CI jobs). If set to True, the connection will be successful but no automated CI job will be triggered - (for ADO native integration only)
- deploy
Key String - Public key generated by dbt when using
deploy_key
clone strategy - fetch
Deploy BooleanKey - Whether we should return the public deploy key - (for the
deploy_key
strategy) - git
Clone StringStrategy - Git clone strategy for the repository. Can be
deploy_key
(default) for cloning via SSH Deploy Key,github_app
for GitHub native integration,deploy_token
for the GitLab native integration andazure_active_directory_app
for ADO native integration - github
Installation IntegerId - Identifier for the GitHub App - (for GitHub native integration only)
- gitlab
Project IntegerId - Identifier for the Gitlab project - (for GitLab native integration only)
- is
Active Boolean - Whether the repository is active
- project
Id Integer - Project ID to create the repository in
- pull
Request StringUrl Template - URL template for creating a pull request. If it is not set, the default template will create a PR from the current branch to the branch configured in the Development environment.
- remote
Url String - Git URL for the repository or / for Gitlab
- repository
Credentials IntegerId - Credentials ID for the repository (From the repository side not the dbt Cloud ID)
- repository
Id Integer - Repository Identifier
- azure
Active stringDirectory Project Id - The Azure Dev Ops project ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsProject
and the project name - (for ADO native integration only) - azure
Active stringDirectory Repository Id - The Azure Dev Ops repository ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsRepository
along with the ADO Project ID and the repository name - (for ADO native integration only) - azure
Bypass booleanWebhook Registration Failure - If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks (required for auto-triggering CI jobs). If set to True, the connection will be successful but no automated CI job will be triggered - (for ADO native integration only)
- deploy
Key string - Public key generated by dbt when using
deploy_key
clone strategy - fetch
Deploy booleanKey - Whether we should return the public deploy key - (for the
deploy_key
strategy) - git
Clone stringStrategy - Git clone strategy for the repository. Can be
deploy_key
(default) for cloning via SSH Deploy Key,github_app
for GitHub native integration,deploy_token
for the GitLab native integration andazure_active_directory_app
for ADO native integration - github
Installation numberId - Identifier for the GitHub App - (for GitHub native integration only)
- gitlab
Project numberId - Identifier for the Gitlab project - (for GitLab native integration only)
- is
Active boolean - Whether the repository is active
- project
Id number - Project ID to create the repository in
- pull
Request stringUrl Template - URL template for creating a pull request. If it is not set, the default template will create a PR from the current branch to the branch configured in the Development environment.
- remote
Url string - Git URL for the repository or / for Gitlab
- repository
Credentials numberId - Credentials ID for the repository (From the repository side not the dbt Cloud ID)
- repository
Id number - Repository Identifier
- azure_
active_ strdirectory_ project_ id - The Azure Dev Ops project ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsProject
and the project name - (for ADO native integration only) - azure_
active_ strdirectory_ repository_ id - The Azure Dev Ops repository ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsRepository
along with the ADO Project ID and the repository name - (for ADO native integration only) - azure_
bypass_ boolwebhook_ registration_ failure - If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks (required for auto-triggering CI jobs). If set to True, the connection will be successful but no automated CI job will be triggered - (for ADO native integration only)
- deploy_
key str - Public key generated by dbt when using
deploy_key
clone strategy - fetch_
deploy_ boolkey - Whether we should return the public deploy key - (for the
deploy_key
strategy) - git_
clone_ strstrategy - Git clone strategy for the repository. Can be
deploy_key
(default) for cloning via SSH Deploy Key,github_app
for GitHub native integration,deploy_token
for the GitLab native integration andazure_active_directory_app
for ADO native integration - github_
installation_ intid - Identifier for the GitHub App - (for GitHub native integration only)
- gitlab_
project_ intid - Identifier for the Gitlab project - (for GitLab native integration only)
- is_
active bool - Whether the repository is active
- project_
id int - Project ID to create the repository in
- pull_
request_ strurl_ template - URL template for creating a pull request. If it is not set, the default template will create a PR from the current branch to the branch configured in the Development environment.
- remote_
url str - Git URL for the repository or / for Gitlab
- repository_
credentials_ intid - Credentials ID for the repository (From the repository side not the dbt Cloud ID)
- repository_
id int - Repository Identifier
- azure
Active StringDirectory Project Id - The Azure Dev Ops project ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsProject
and the project name - (for ADO native integration only) - azure
Active StringDirectory Repository Id - The Azure Dev Ops repository ID. It can be retrieved via the Azure API or using the data source
dbtcloud.getAzureDevOpsRepository
along with the ADO Project ID and the repository name - (for ADO native integration only) - azure
Bypass BooleanWebhook Registration Failure - If set to False (the default), the connection will fail if the service user doesn't have access to set webhooks (required for auto-triggering CI jobs). If set to True, the connection will be successful but no automated CI job will be triggered - (for ADO native integration only)
- deploy
Key String - Public key generated by dbt when using
deploy_key
clone strategy - fetch
Deploy BooleanKey - Whether we should return the public deploy key - (for the
deploy_key
strategy) - git
Clone StringStrategy - Git clone strategy for the repository. Can be
deploy_key
(default) for cloning via SSH Deploy Key,github_app
for GitHub native integration,deploy_token
for the GitLab native integration andazure_active_directory_app
for ADO native integration - github
Installation NumberId - Identifier for the GitHub App - (for GitHub native integration only)
- gitlab
Project NumberId - Identifier for the Gitlab project - (for GitLab native integration only)
- is
Active Boolean - Whether the repository is active
- project
Id Number - Project ID to create the repository in
- pull
Request StringUrl Template - URL template for creating a pull request. If it is not set, the default template will create a PR from the current branch to the branch configured in the Development environment.
- remote
Url String - Git URL for the repository or / for Gitlab
- repository
Credentials NumberId - Credentials ID for the repository (From the repository side not the dbt Cloud ID)
- repository
Id Number - Repository Identifier
Package Details
- Repository
- dbtcloud pulumi/pulumi-dbtcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dbtcloud
Terraform Provider.