@pulumi/dbtcloud 0.2.0-alpha.1723008528 → 0.2.0-alpha.1723819717
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/environmentVariable.d.ts +3 -3
- package/getEnvironmentVariable.d.ts +1 -1
- package/package.json +2 -2
- package/repository.d.ts +17 -50
- package/repository.js +17 -50
- package/repository.js.map +1 -1
package/environmentVariable.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export declare class EnvironmentVariable extends pulumi.CustomResource {
|
|
|
78
78
|
* Map from environment names to respective variable value, a special key `project` should be set for the project default variable value. This field is not set as sensitive so take precautions when using secret environment variables.
|
|
79
79
|
*/
|
|
80
80
|
readonly environmentValues: pulumi.Output<{
|
|
81
|
-
[key: string]:
|
|
81
|
+
[key: string]: string;
|
|
82
82
|
}>;
|
|
83
83
|
/**
|
|
84
84
|
* Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
|
|
@@ -105,7 +105,7 @@ export interface EnvironmentVariableState {
|
|
|
105
105
|
* Map from environment names to respective variable value, a special key `project` should be set for the project default variable value. This field is not set as sensitive so take precautions when using secret environment variables.
|
|
106
106
|
*/
|
|
107
107
|
environmentValues?: pulumi.Input<{
|
|
108
|
-
[key: string]:
|
|
108
|
+
[key: string]: pulumi.Input<string>;
|
|
109
109
|
}>;
|
|
110
110
|
/**
|
|
111
111
|
* Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
|
|
@@ -124,7 +124,7 @@ export interface EnvironmentVariableArgs {
|
|
|
124
124
|
* Map from environment names to respective variable value, a special key `project` should be set for the project default variable value. This field is not set as sensitive so take precautions when using secret environment variables.
|
|
125
125
|
*/
|
|
126
126
|
environmentValues: pulumi.Input<{
|
|
127
|
-
[key: string]:
|
|
127
|
+
[key: string]: pulumi.Input<string>;
|
|
128
128
|
}>;
|
|
129
129
|
/**
|
|
130
130
|
* Name for the variable, must be unique within a project, must be prefixed with 'DBT_'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/dbtcloud",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.1723819717",
|
|
4
4
|
"description": "A Pulumi package for creating and managing dbt Cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"pulumi": {
|
|
27
27
|
"resource": true,
|
|
28
28
|
"name": "dbtcloud",
|
|
29
|
-
"version": "0.2.0-alpha.
|
|
29
|
+
"version": "0.2.0-alpha.1723819717",
|
|
30
30
|
"server": "github://api.github.com/pulumi/pulumi-dbtcloud"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/repository.d.ts
CHANGED
|
@@ -13,65 +13,32 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
13
13
|
*
|
|
14
14
|
* ## Example Usage
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
* resource "dbtcloud.Repository" "githubRepo" {
|
|
18
|
-
* projectId = dbtcloud_project.dbt_project.id
|
|
19
|
-
* remoteUrl = "git@github.com:<github_org>/<github_repo>.git"
|
|
20
|
-
* githubInstallationId = 9876
|
|
21
|
-
* gitCloneStrategy = "githubApp"
|
|
22
|
-
* }
|
|
16
|
+
* ## Import
|
|
23
17
|
*
|
|
24
|
-
*
|
|
25
|
-
* # here, we assume that `token` and `hostUrl` are respectively accessible via `var.dbt_token` and `var.dbt_host_url`
|
|
26
|
-
* # NOTE: the following requires connecting via a user token and can't be retrieved with a service token
|
|
27
|
-
* data "http" "githubInstallationsResponse" {
|
|
28
|
-
* url = format("%s/v2/integrations/github/installations/", var.dbt_host_url)
|
|
29
|
-
* requestHeaders = {
|
|
30
|
-
* Authorization = format("Bearer %s", var.dbt_token)
|
|
31
|
-
* }
|
|
32
|
-
* }
|
|
18
|
+
* using import blocks (requires Terraform >= 1.5)
|
|
33
19
|
*
|
|
34
|
-
*
|
|
35
|
-
* githubInstallationId = jsondecode(data.http.github_installations_response.response_body)[0].id
|
|
36
|
-
* }
|
|
20
|
+
* import {
|
|
37
21
|
*
|
|
38
|
-
*
|
|
39
|
-
* projectId = dbtcloud_project.dbt_project.id
|
|
40
|
-
* remoteUrl = "git@github.com:<github_org>/<github_repo>.git"
|
|
41
|
-
* githubInstallationId = local.github_installation_id
|
|
42
|
-
* gitCloneStrategy = "githubApp"
|
|
43
|
-
* }
|
|
22
|
+
* to = dbtcloud_repository.my_repository
|
|
44
23
|
*
|
|
45
|
-
*
|
|
46
|
-
* # as of 15 Sept 2023 this resource requires using a user token and can't be set with a service token - CC-791
|
|
47
|
-
* resource "dbtcloud.Repository" "gitlabRepo" {
|
|
48
|
-
* projectId = dbtcloud_project.dbt_project.id
|
|
49
|
-
* remoteUrl = "<gitlab-group>/<gitlab-project>"
|
|
50
|
-
* gitlabProjectId = 8765
|
|
51
|
-
* gitCloneStrategy = "deployToken"
|
|
52
|
-
* }
|
|
24
|
+
* id = "project_id:repository_id"
|
|
53
25
|
*
|
|
54
|
-
* ### repo cloned via the deploy token strategy
|
|
55
|
-
* resource "dbtcloud.Repository" "deployRepo" {
|
|
56
|
-
* projectId = dbtcloud_project.dbt_project.id
|
|
57
|
-
* remoteUrl = "git://github.com/<github_org>/<github_repo>.git"
|
|
58
|
-
* gitCloneStrategy = "deployKey"
|
|
59
26
|
* }
|
|
60
27
|
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* # azureActiveDirectoryRepositoryId = "87654321-4321-abcd-abcd-464327678642"
|
|
68
|
-
* remoteUrl = data.dbtcloud_azure_dev_ops_repository.my_devops_repo.remote_url
|
|
69
|
-
* azureActiveDirectoryRepositoryId = data.dbtcloud_azure_dev_ops_repository.my_devops_repo.id
|
|
70
|
-
* azureActiveDirectoryProjectId = data.dbtcloud_azure_dev_ops_project.my_devops_project.id
|
|
71
|
-
* azureBypassWebhookRegistrationFailure = false
|
|
72
|
-
* gitCloneStrategy = "azureActiveDirectoryApp"
|
|
28
|
+
* import {
|
|
29
|
+
*
|
|
30
|
+
* to = dbtcloud_repository.my_repository
|
|
31
|
+
*
|
|
32
|
+
* id = "12345:6789"
|
|
33
|
+
*
|
|
73
34
|
* }
|
|
74
35
|
*
|
|
36
|
+
* using the older import command
|
|
37
|
+
*
|
|
38
|
+
* ```sh
|
|
39
|
+
* $ pulumi import dbtcloud:index/repository:Repository my_repository "project_id:repository_id"
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
75
42
|
* ```sh
|
|
76
43
|
* $ pulumi import dbtcloud:index/repository:Repository my_repository 12345:6789
|
|
77
44
|
* ```
|
package/repository.js
CHANGED
|
@@ -19,65 +19,32 @@ const utilities = require("./utilities");
|
|
|
19
19
|
*
|
|
20
20
|
* ## Example Usage
|
|
21
21
|
*
|
|
22
|
-
*
|
|
23
|
-
* resource "dbtcloud.Repository" "githubRepo" {
|
|
24
|
-
* projectId = dbtcloud_project.dbt_project.id
|
|
25
|
-
* remoteUrl = "git@github.com:<github_org>/<github_repo>.git"
|
|
26
|
-
* githubInstallationId = 9876
|
|
27
|
-
* gitCloneStrategy = "githubApp"
|
|
28
|
-
* }
|
|
22
|
+
* ## Import
|
|
29
23
|
*
|
|
30
|
-
*
|
|
31
|
-
* # here, we assume that `token` and `hostUrl` are respectively accessible via `var.dbt_token` and `var.dbt_host_url`
|
|
32
|
-
* # NOTE: the following requires connecting via a user token and can't be retrieved with a service token
|
|
33
|
-
* data "http" "githubInstallationsResponse" {
|
|
34
|
-
* url = format("%s/v2/integrations/github/installations/", var.dbt_host_url)
|
|
35
|
-
* requestHeaders = {
|
|
36
|
-
* Authorization = format("Bearer %s", var.dbt_token)
|
|
37
|
-
* }
|
|
38
|
-
* }
|
|
24
|
+
* using import blocks (requires Terraform >= 1.5)
|
|
39
25
|
*
|
|
40
|
-
*
|
|
41
|
-
* githubInstallationId = jsondecode(data.http.github_installations_response.response_body)[0].id
|
|
42
|
-
* }
|
|
26
|
+
* import {
|
|
43
27
|
*
|
|
44
|
-
*
|
|
45
|
-
* projectId = dbtcloud_project.dbt_project.id
|
|
46
|
-
* remoteUrl = "git@github.com:<github_org>/<github_repo>.git"
|
|
47
|
-
* githubInstallationId = local.github_installation_id
|
|
48
|
-
* gitCloneStrategy = "githubApp"
|
|
49
|
-
* }
|
|
28
|
+
* to = dbtcloud_repository.my_repository
|
|
50
29
|
*
|
|
51
|
-
*
|
|
52
|
-
* # as of 15 Sept 2023 this resource requires using a user token and can't be set with a service token - CC-791
|
|
53
|
-
* resource "dbtcloud.Repository" "gitlabRepo" {
|
|
54
|
-
* projectId = dbtcloud_project.dbt_project.id
|
|
55
|
-
* remoteUrl = "<gitlab-group>/<gitlab-project>"
|
|
56
|
-
* gitlabProjectId = 8765
|
|
57
|
-
* gitCloneStrategy = "deployToken"
|
|
58
|
-
* }
|
|
30
|
+
* id = "project_id:repository_id"
|
|
59
31
|
*
|
|
60
|
-
* ### repo cloned via the deploy token strategy
|
|
61
|
-
* resource "dbtcloud.Repository" "deployRepo" {
|
|
62
|
-
* projectId = dbtcloud_project.dbt_project.id
|
|
63
|
-
* remoteUrl = "git://github.com/<github_org>/<github_repo>.git"
|
|
64
|
-
* gitCloneStrategy = "deployKey"
|
|
65
32
|
* }
|
|
66
33
|
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* # azureActiveDirectoryRepositoryId = "87654321-4321-abcd-abcd-464327678642"
|
|
74
|
-
* remoteUrl = data.dbtcloud_azure_dev_ops_repository.my_devops_repo.remote_url
|
|
75
|
-
* azureActiveDirectoryRepositoryId = data.dbtcloud_azure_dev_ops_repository.my_devops_repo.id
|
|
76
|
-
* azureActiveDirectoryProjectId = data.dbtcloud_azure_dev_ops_project.my_devops_project.id
|
|
77
|
-
* azureBypassWebhookRegistrationFailure = false
|
|
78
|
-
* gitCloneStrategy = "azureActiveDirectoryApp"
|
|
34
|
+
* import {
|
|
35
|
+
*
|
|
36
|
+
* to = dbtcloud_repository.my_repository
|
|
37
|
+
*
|
|
38
|
+
* id = "12345:6789"
|
|
39
|
+
*
|
|
79
40
|
* }
|
|
80
41
|
*
|
|
42
|
+
* using the older import command
|
|
43
|
+
*
|
|
44
|
+
* ```sh
|
|
45
|
+
* $ pulumi import dbtcloud:index/repository:Repository my_repository "project_id:repository_id"
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
81
48
|
* ```sh
|
|
82
49
|
* $ pulumi import dbtcloud:index/repository:Repository my_repository 12345:6789
|
|
83
50
|
* ```
|
package/repository.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.js","sourceRoot":"","sources":["../repository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"repository.js","sourceRoot":"","sources":["../repository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAAU,CAAC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