@pulumi/dbtcloud 0.2.0-alpha.1724477159 → 0.2.0-alpha.1724909482

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.
@@ -6,8 +6,48 @@ import * as outputs from "./types/output";
6
6
  *
7
7
  * Those connections are not linked to a project and can be linked to environments from different projects by using the `connectionId` field in the `dbtcloud.Environment` resource.
8
8
  *
9
- * For now, only BigQuery and Snowflake connections are supported and the other Data Warehouses can continue using the existing resources `dbtcloud.Connection` and `dbtcloud.FabricConnection` ,
9
+ * For now, only a subset of connections are supported and the other Data Warehouses can continue using the existing resources `dbtcloud.Connection` and `dbtcloud.FabricConnection` ,
10
10
  * but all Data Warehouses will soon be supported under this resource and the other ones will be deprecated in the future.
11
+ *
12
+ * ## Import
13
+ *
14
+ * A project-scoped connection can be imported as a global connection by specifying the connection ID
15
+ *
16
+ * Migrating from project-scoped connections to global connections could be done by:
17
+ *
18
+ * 1. Adding the config for the global connection and importing it (see below)
19
+ *
20
+ * 2. Removing the project-scoped connection from the config AND from the state
21
+ *
22
+ * - CAREFUL: If the connection is removed from the config but not the state, it will be destroyed on the next apply
23
+ *
24
+ * using import blocks (requires Terraform >= 1.5)
25
+ *
26
+ * import {
27
+ *
28
+ * to = dbtcloud_global_connection.my_connection
29
+ *
30
+ * id = "connection_id"
31
+ *
32
+ * }
33
+ *
34
+ * import {
35
+ *
36
+ * to = dbtcloud_global_connection.my_connection
37
+ *
38
+ * id = "1234"
39
+ *
40
+ * }
41
+ *
42
+ * using the older import command
43
+ *
44
+ * ```sh
45
+ * $ pulumi import dbtcloud:index/globalConnection:GlobalConnection my_connection "connection_id"
46
+ * ```
47
+ *
48
+ * ```sh
49
+ * $ pulumi import dbtcloud:index/globalConnection:GlobalConnection my_connection 1234
50
+ * ```
11
51
  */
12
52
  export declare class GlobalConnection extends pulumi.CustomResource {
13
53
  /**
@@ -30,6 +70,10 @@ export declare class GlobalConnection extends pulumi.CustomResource {
30
70
  */
31
71
  readonly adapterVersion: pulumi.Output<string>;
32
72
  readonly bigquery: pulumi.Output<outputs.GlobalConnectionBigquery | undefined>;
73
+ /**
74
+ * Databricks connection configuration
75
+ */
76
+ readonly databricks: pulumi.Output<outputs.GlobalConnectionDatabricks | undefined>;
33
77
  /**
34
78
  * Whether the connection can use an SSH tunnel
35
79
  */
@@ -65,6 +109,10 @@ export interface GlobalConnectionState {
65
109
  */
66
110
  adapterVersion?: pulumi.Input<string>;
67
111
  bigquery?: pulumi.Input<inputs.GlobalConnectionBigquery>;
112
+ /**
113
+ * Databricks connection configuration
114
+ */
115
+ databricks?: pulumi.Input<inputs.GlobalConnectionDatabricks>;
68
116
  /**
69
117
  * Whether the connection can use an SSH tunnel
70
118
  */
@@ -88,6 +136,10 @@ export interface GlobalConnectionState {
88
136
  */
89
137
  export interface GlobalConnectionArgs {
90
138
  bigquery?: pulumi.Input<inputs.GlobalConnectionBigquery>;
139
+ /**
140
+ * Databricks connection configuration
141
+ */
142
+ databricks?: pulumi.Input<inputs.GlobalConnectionDatabricks>;
91
143
  /**
92
144
  * Connection name
93
145
  */
@@ -10,8 +10,48 @@ const utilities = require("./utilities");
10
10
  *
11
11
  * Those connections are not linked to a project and can be linked to environments from different projects by using the `connectionId` field in the `dbtcloud.Environment` resource.
12
12
  *
13
- * For now, only BigQuery and Snowflake connections are supported and the other Data Warehouses can continue using the existing resources `dbtcloud.Connection` and `dbtcloud.FabricConnection` ,
13
+ * For now, only a subset of connections are supported and the other Data Warehouses can continue using the existing resources `dbtcloud.Connection` and `dbtcloud.FabricConnection` ,
14
14
  * but all Data Warehouses will soon be supported under this resource and the other ones will be deprecated in the future.
15
+ *
16
+ * ## Import
17
+ *
18
+ * A project-scoped connection can be imported as a global connection by specifying the connection ID
19
+ *
20
+ * Migrating from project-scoped connections to global connections could be done by:
21
+ *
22
+ * 1. Adding the config for the global connection and importing it (see below)
23
+ *
24
+ * 2. Removing the project-scoped connection from the config AND from the state
25
+ *
26
+ * - CAREFUL: If the connection is removed from the config but not the state, it will be destroyed on the next apply
27
+ *
28
+ * using import blocks (requires Terraform >= 1.5)
29
+ *
30
+ * import {
31
+ *
32
+ * to = dbtcloud_global_connection.my_connection
33
+ *
34
+ * id = "connection_id"
35
+ *
36
+ * }
37
+ *
38
+ * import {
39
+ *
40
+ * to = dbtcloud_global_connection.my_connection
41
+ *
42
+ * id = "1234"
43
+ *
44
+ * }
45
+ *
46
+ * using the older import command
47
+ *
48
+ * ```sh
49
+ * $ pulumi import dbtcloud:index/globalConnection:GlobalConnection my_connection "connection_id"
50
+ * ```
51
+ *
52
+ * ```sh
53
+ * $ pulumi import dbtcloud:index/globalConnection:GlobalConnection my_connection 1234
54
+ * ```
15
55
  */
16
56
  class GlobalConnection extends pulumi.CustomResource {
17
57
  /**
@@ -43,6 +83,7 @@ class GlobalConnection extends pulumi.CustomResource {
43
83
  const state = argsOrState;
44
84
  resourceInputs["adapterVersion"] = state ? state.adapterVersion : undefined;
45
85
  resourceInputs["bigquery"] = state ? state.bigquery : undefined;
86
+ resourceInputs["databricks"] = state ? state.databricks : undefined;
46
87
  resourceInputs["isSshTunnelEnabled"] = state ? state.isSshTunnelEnabled : undefined;
47
88
  resourceInputs["name"] = state ? state.name : undefined;
48
89
  resourceInputs["oauthConfigurationId"] = state ? state.oauthConfigurationId : undefined;
@@ -52,6 +93,7 @@ class GlobalConnection extends pulumi.CustomResource {
52
93
  else {
53
94
  const args = argsOrState;
54
95
  resourceInputs["bigquery"] = args ? args.bigquery : undefined;
96
+ resourceInputs["databricks"] = args ? args.databricks : undefined;
55
97
  resourceInputs["name"] = args ? args.name : undefined;
56
98
  resourceInputs["privateLinkEndpointId"] = args ? args.privateLinkEndpointId : undefined;
57
99
  resourceInputs["snowflake"] = args ? args.snowflake : undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"globalConnection.js","sourceRoot":"","sources":["../globalConnection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAA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CAAC,sBAAsB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AAzFL,4CA0FC;AA5EG,gBAAgB;AACO,6BAAY,GAAG,kDAAkD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/dbtcloud",
3
- "version": "0.2.0-alpha.1724477159",
3
+ "version": "0.2.0-alpha.1724909482",
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.1724477159",
29
+ "version": "0.2.0-alpha.1724909482",
30
30
  "server": "github://api.github.com/pulumi/pulumi-dbtcloud"
31
31
  }
32
32
  }
package/types/input.d.ts CHANGED
@@ -141,6 +141,28 @@ export interface GlobalConnectionBigquery {
141
141
  */
142
142
  tokenUri: pulumi.Input<string>;
143
143
  }
144
+ export interface GlobalConnectionDatabricks {
145
+ /**
146
+ * Catalog name if Unity Catalog is enabled in your Databricks workspace.
147
+ */
148
+ catalog?: pulumi.Input<string>;
149
+ /**
150
+ * Required to enable Databricks OAuth authentication for IDE developers.
151
+ */
152
+ clientId?: pulumi.Input<string>;
153
+ /**
154
+ * Required to enable Databricks OAuth authentication for IDE developers.
155
+ */
156
+ clientSecret?: pulumi.Input<string>;
157
+ /**
158
+ * The hostname of the Databricks cluster or SQL warehouse.
159
+ */
160
+ host: pulumi.Input<string>;
161
+ /**
162
+ * The HTTP path of the Databricks cluster or SQL warehouse.
163
+ */
164
+ httpPath: pulumi.Input<string>;
165
+ }
144
166
  export interface GlobalConnectionSnowflake {
145
167
  /**
146
168
  * The Snowflake account name
package/types/output.d.ts CHANGED
@@ -344,6 +344,28 @@ export interface GlobalConnectionBigquery {
344
344
  */
345
345
  tokenUri: string;
346
346
  }
347
+ export interface GlobalConnectionDatabricks {
348
+ /**
349
+ * Catalog name if Unity Catalog is enabled in your Databricks workspace.
350
+ */
351
+ catalog?: string;
352
+ /**
353
+ * Required to enable Databricks OAuth authentication for IDE developers.
354
+ */
355
+ clientId?: string;
356
+ /**
357
+ * Required to enable Databricks OAuth authentication for IDE developers.
358
+ */
359
+ clientSecret?: string;
360
+ /**
361
+ * The hostname of the Databricks cluster or SQL warehouse.
362
+ */
363
+ host: string;
364
+ /**
365
+ * The HTTP path of the Databricks cluster or SQL warehouse.
366
+ */
367
+ httpPath: string;
368
+ }
347
369
  export interface GlobalConnectionSnowflake {
348
370
  /**
349
371
  * The Snowflake account name