@pulumi/databricks 1.84.0 → 1.85.0-alpha.1770935371

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.
Files changed (350) hide show
  1. package/accountFederationPolicy.d.ts +0 -20
  2. package/accountFederationPolicy.js +0 -20
  3. package/accountFederationPolicy.js.map +1 -1
  4. package/accountNetworkPolicy.d.ts +0 -20
  5. package/accountNetworkPolicy.js +0 -20
  6. package/accountNetworkPolicy.js.map +1 -1
  7. package/accountSettingUserPreferenceV2.d.ts +0 -20
  8. package/accountSettingUserPreferenceV2.js +0 -20
  9. package/accountSettingUserPreferenceV2.js.map +1 -1
  10. package/accountSettingV2.d.ts +0 -20
  11. package/accountSettingV2.js +0 -20
  12. package/accountSettingV2.js.map +1 -1
  13. package/aibiDashboardEmbeddingAccessPolicySetting.d.ts +0 -22
  14. package/aibiDashboardEmbeddingAccessPolicySetting.js +0 -22
  15. package/aibiDashboardEmbeddingAccessPolicySetting.js.map +1 -1
  16. package/aibiDashboardEmbeddingApprovedDomainsSetting.d.ts +0 -22
  17. package/aibiDashboardEmbeddingApprovedDomainsSetting.js +0 -22
  18. package/aibiDashboardEmbeddingApprovedDomainsSetting.js.map +1 -1
  19. package/alert.d.ts +132 -11
  20. package/alert.js +132 -11
  21. package/alert.js.map +1 -1
  22. package/alertV2.d.ts +0 -20
  23. package/alertV2.js +0 -20
  24. package/alertV2.js.map +1 -1
  25. package/app.d.ts +0 -22
  26. package/app.js +0 -22
  27. package/app.js.map +1 -1
  28. package/appsSettingsCustomTemplate.d.ts +0 -20
  29. package/appsSettingsCustomTemplate.js +0 -20
  30. package/appsSettingsCustomTemplate.js.map +1 -1
  31. package/artifactAllowlist.d.ts +0 -22
  32. package/artifactAllowlist.js +0 -22
  33. package/artifactAllowlist.js.map +1 -1
  34. package/budget.d.ts +0 -22
  35. package/budget.js +0 -22
  36. package/budget.js.map +1 -1
  37. package/budgetPolicy.d.ts +0 -20
  38. package/budgetPolicy.js +0 -20
  39. package/budgetPolicy.js.map +1 -1
  40. package/catalog.d.ts +0 -22
  41. package/catalog.js +0 -22
  42. package/catalog.js.map +1 -1
  43. package/catalogWorkspaceBinding.d.ts +0 -22
  44. package/catalogWorkspaceBinding.js +0 -22
  45. package/catalogWorkspaceBinding.js.map +1 -1
  46. package/cluster.d.ts +54 -5
  47. package/cluster.js +54 -5
  48. package/cluster.js.map +1 -1
  49. package/clusterPolicy.d.ts +0 -22
  50. package/clusterPolicy.js +0 -22
  51. package/clusterPolicy.js.map +1 -1
  52. package/connection.d.ts +0 -22
  53. package/connection.js +0 -22
  54. package/connection.js.map +1 -1
  55. package/credential.d.ts +0 -22
  56. package/credential.js +0 -22
  57. package/credential.js.map +1 -1
  58. package/customAppIntegration.d.ts +0 -22
  59. package/customAppIntegration.js +0 -22
  60. package/customAppIntegration.js.map +1 -1
  61. package/dashboard.d.ts +0 -22
  62. package/dashboard.js +0 -22
  63. package/dashboard.js.map +1 -1
  64. package/dataQualityMonitor.d.ts +0 -20
  65. package/dataQualityMonitor.js +0 -20
  66. package/dataQualityMonitor.js.map +1 -1
  67. package/dataQualityRefresh.d.ts +0 -20
  68. package/dataQualityRefresh.js +0 -20
  69. package/dataQualityRefresh.js.map +1 -1
  70. package/databaseDatabaseCatalog.d.ts +0 -20
  71. package/databaseDatabaseCatalog.js +0 -20
  72. package/databaseDatabaseCatalog.js.map +1 -1
  73. package/databaseInstance.d.ts +0 -20
  74. package/databaseInstance.js +0 -20
  75. package/databaseInstance.js.map +1 -1
  76. package/databaseSyncedDatabaseTable.d.ts +0 -20
  77. package/databaseSyncedDatabaseTable.js +0 -20
  78. package/databaseSyncedDatabaseTable.js.map +1 -1
  79. package/dbfsFile.d.ts +0 -22
  80. package/dbfsFile.js +0 -22
  81. package/dbfsFile.js.map +1 -1
  82. package/defaultNamespaceSetting.d.ts +0 -22
  83. package/defaultNamespaceSetting.js +0 -22
  84. package/defaultNamespaceSetting.js.map +1 -1
  85. package/directory.d.ts +0 -22
  86. package/directory.js +0 -22
  87. package/directory.js.map +1 -1
  88. package/disableLegacyAccessSetting.d.ts +0 -6
  89. package/disableLegacyAccessSetting.js +0 -6
  90. package/disableLegacyAccessSetting.js.map +1 -1
  91. package/disableLegacyDbfsSetting.d.ts +0 -22
  92. package/disableLegacyDbfsSetting.js +0 -22
  93. package/disableLegacyDbfsSetting.js.map +1 -1
  94. package/disableLegacyFeaturesSetting.d.ts +0 -22
  95. package/disableLegacyFeaturesSetting.js +0 -22
  96. package/disableLegacyFeaturesSetting.js.map +1 -1
  97. package/entitlements.d.ts +0 -28
  98. package/entitlements.js +0 -28
  99. package/entitlements.js.map +1 -1
  100. package/entityTagAssignment.d.ts +0 -20
  101. package/entityTagAssignment.js +0 -20
  102. package/entityTagAssignment.js.map +1 -1
  103. package/externalLocation.d.ts +0 -22
  104. package/externalLocation.js +0 -22
  105. package/externalLocation.js.map +1 -1
  106. package/externalMetadata.d.ts +0 -20
  107. package/externalMetadata.js +0 -20
  108. package/externalMetadata.js.map +1 -1
  109. package/featureEngineeringFeature.d.ts +18 -20
  110. package/featureEngineeringFeature.js +0 -20
  111. package/featureEngineeringFeature.js.map +1 -1
  112. package/featureEngineeringKafkaConfig.d.ts +0 -20
  113. package/featureEngineeringKafkaConfig.js +0 -20
  114. package/featureEngineeringKafkaConfig.js.map +1 -1
  115. package/featureEngineeringMaterializedFeature.d.ts +0 -20
  116. package/featureEngineeringMaterializedFeature.js +0 -20
  117. package/featureEngineeringMaterializedFeature.js.map +1 -1
  118. package/file.d.ts +0 -22
  119. package/file.js +0 -22
  120. package/file.js.map +1 -1
  121. package/getFeatureEngineeringFeature.d.ts +6 -0
  122. package/getFeatureEngineeringFeature.js.map +1 -1
  123. package/gitCredential.d.ts +0 -22
  124. package/gitCredential.js +0 -22
  125. package/gitCredential.js.map +1 -1
  126. package/globalInitScript.d.ts +0 -22
  127. package/globalInitScript.js +0 -22
  128. package/globalInitScript.js.map +1 -1
  129. package/grant.d.ts +0 -22
  130. package/grant.js +0 -22
  131. package/grant.js.map +1 -1
  132. package/grants.d.ts +0 -22
  133. package/grants.js +0 -22
  134. package/grants.js.map +1 -1
  135. package/group.d.ts +0 -22
  136. package/group.js +0 -22
  137. package/group.js.map +1 -1
  138. package/groupMember.d.ts +0 -22
  139. package/groupMember.js +0 -22
  140. package/groupMember.js.map +1 -1
  141. package/instancePool.d.ts +0 -22
  142. package/instancePool.js +0 -22
  143. package/instancePool.js.map +1 -1
  144. package/instanceProfile.d.ts +0 -22
  145. package/instanceProfile.js +0 -22
  146. package/instanceProfile.js.map +1 -1
  147. package/ipAccessList.d.ts +0 -22
  148. package/ipAccessList.js +0 -22
  149. package/ipAccessList.js.map +1 -1
  150. package/job.d.ts +0 -22
  151. package/job.js +0 -22
  152. package/job.js.map +1 -1
  153. package/materializedFeaturesFeatureTag.d.ts +0 -20
  154. package/materializedFeaturesFeatureTag.js +0 -20
  155. package/materializedFeaturesFeatureTag.js.map +1 -1
  156. package/metastore.d.ts +0 -22
  157. package/metastore.js +0 -22
  158. package/metastore.js.map +1 -1
  159. package/metastoreAssignment.d.ts +0 -22
  160. package/metastoreAssignment.js +0 -22
  161. package/metastoreAssignment.js.map +1 -1
  162. package/metastoreDataAccess.d.ts +0 -22
  163. package/metastoreDataAccess.js +0 -22
  164. package/metastoreDataAccess.js.map +1 -1
  165. package/mlflowExperiment.d.ts +0 -22
  166. package/mlflowExperiment.js +0 -22
  167. package/mlflowExperiment.js.map +1 -1
  168. package/mlflowModel.d.ts +0 -22
  169. package/mlflowModel.js +0 -22
  170. package/mlflowModel.js.map +1 -1
  171. package/modelServing.d.ts +0 -22
  172. package/modelServing.js +0 -22
  173. package/modelServing.js.map +1 -1
  174. package/modelServingProvisionedThroughput.d.ts +0 -24
  175. package/modelServingProvisionedThroughput.js +0 -24
  176. package/modelServingProvisionedThroughput.js.map +1 -1
  177. package/mount.d.ts +329 -0
  178. package/mount.js +329 -0
  179. package/mount.js.map +1 -1
  180. package/mwsCredentials.d.ts +6 -22
  181. package/mwsCredentials.js +6 -22
  182. package/mwsCredentials.js.map +1 -1
  183. package/mwsCustomerManagedKeys.d.ts +9 -26
  184. package/mwsCustomerManagedKeys.js +9 -26
  185. package/mwsCustomerManagedKeys.js.map +1 -1
  186. package/mwsNccPrivateEndpointRule.d.ts +0 -20
  187. package/mwsNccPrivateEndpointRule.js +0 -20
  188. package/mwsNccPrivateEndpointRule.js.map +1 -1
  189. package/mwsNetworkConnectivityConfig.d.ts +0 -22
  190. package/mwsNetworkConnectivityConfig.js +0 -22
  191. package/mwsNetworkConnectivityConfig.js.map +1 -1
  192. package/mwsNetworks.d.ts +31 -26
  193. package/mwsNetworks.js +31 -26
  194. package/mwsNetworks.js.map +1 -1
  195. package/mwsPermissionAssignment.d.ts +0 -22
  196. package/mwsPermissionAssignment.js +0 -22
  197. package/mwsPermissionAssignment.js.map +1 -1
  198. package/mwsPrivateAccessSettings.d.ts +0 -20
  199. package/mwsPrivateAccessSettings.js +0 -20
  200. package/mwsPrivateAccessSettings.js.map +1 -1
  201. package/mwsStorageConfigurations.d.ts +8 -28
  202. package/mwsStorageConfigurations.js +8 -28
  203. package/mwsStorageConfigurations.js.map +1 -1
  204. package/mwsVpcEndpoint.d.ts +1 -1
  205. package/mwsVpcEndpoint.js +1 -1
  206. package/mwsWorkspaces.d.ts +0 -34
  207. package/mwsWorkspaces.js +0 -34
  208. package/mwsWorkspaces.js.map +1 -1
  209. package/notebook.d.ts +0 -22
  210. package/notebook.js +0 -22
  211. package/notebook.js.map +1 -1
  212. package/notificationDestination.d.ts +0 -22
  213. package/notificationDestination.js +0 -22
  214. package/notificationDestination.js.map +1 -1
  215. package/onlineStore.d.ts +0 -20
  216. package/onlineStore.js +0 -20
  217. package/onlineStore.js.map +1 -1
  218. package/onlineTable.d.ts +0 -22
  219. package/onlineTable.js +0 -22
  220. package/onlineTable.js.map +1 -1
  221. package/package.json +2 -2
  222. package/permissionAssignment.d.ts +0 -22
  223. package/permissionAssignment.js +0 -22
  224. package/permissionAssignment.js.map +1 -1
  225. package/permissions.d.ts +1 -1
  226. package/permissions.js +1 -1
  227. package/pipeline.d.ts +0 -22
  228. package/pipeline.js +0 -22
  229. package/pipeline.js.map +1 -1
  230. package/policyInfo.d.ts +0 -20
  231. package/policyInfo.js +0 -20
  232. package/policyInfo.js.map +1 -1
  233. package/postgresBranch.d.ts +0 -20
  234. package/postgresBranch.js +0 -20
  235. package/postgresBranch.js.map +1 -1
  236. package/postgresEndpoint.d.ts +0 -20
  237. package/postgresEndpoint.js +0 -20
  238. package/postgresEndpoint.js.map +1 -1
  239. package/postgresProject.d.ts +0 -20
  240. package/postgresProject.js +0 -20
  241. package/postgresProject.js.map +1 -1
  242. package/qualityMonitorV2.d.ts +0 -20
  243. package/qualityMonitorV2.js +0 -20
  244. package/qualityMonitorV2.js.map +1 -1
  245. package/query.d.ts +86 -11
  246. package/query.js +86 -11
  247. package/query.js.map +1 -1
  248. package/recipient.d.ts +0 -22
  249. package/recipient.js +0 -22
  250. package/recipient.js.map +1 -1
  251. package/registeredModel.d.ts +0 -22
  252. package/registeredModel.js +0 -22
  253. package/registeredModel.js.map +1 -1
  254. package/repo.d.ts +0 -22
  255. package/repo.js +0 -22
  256. package/repo.js.map +1 -1
  257. package/restrictWorkspaceAdminsSetting.d.ts +0 -22
  258. package/restrictWorkspaceAdminsSetting.js +0 -22
  259. package/restrictWorkspaceAdminsSetting.js.map +1 -1
  260. package/rfaAccessRequestDestinations.d.ts +0 -20
  261. package/rfaAccessRequestDestinations.js +0 -20
  262. package/rfaAccessRequestDestinations.js.map +1 -1
  263. package/schema.d.ts +0 -22
  264. package/schema.js +0 -22
  265. package/schema.js.map +1 -1
  266. package/secret.d.ts +0 -22
  267. package/secret.js +0 -22
  268. package/secret.js.map +1 -1
  269. package/secretAcl.d.ts +0 -22
  270. package/secretAcl.js +0 -22
  271. package/secretAcl.js.map +1 -1
  272. package/secretScope.d.ts +0 -22
  273. package/secretScope.js +0 -22
  274. package/secretScope.js.map +1 -1
  275. package/servicePrincipal.d.ts +0 -22
  276. package/servicePrincipal.js +0 -22
  277. package/servicePrincipal.js.map +1 -1
  278. package/servicePrincipalFederationPolicy.d.ts +0 -20
  279. package/servicePrincipalFederationPolicy.js +0 -20
  280. package/servicePrincipalFederationPolicy.js.map +1 -1
  281. package/share.d.ts +0 -22
  282. package/share.js +0 -22
  283. package/share.js.map +1 -1
  284. package/sqlAlert.d.ts +0 -22
  285. package/sqlAlert.js +0 -22
  286. package/sqlAlert.js.map +1 -1
  287. package/sqlDashboard.d.ts +0 -22
  288. package/sqlDashboard.js +0 -22
  289. package/sqlDashboard.js.map +1 -1
  290. package/sqlEndpoint.d.ts +0 -22
  291. package/sqlEndpoint.js +0 -22
  292. package/sqlEndpoint.js.map +1 -1
  293. package/sqlGlobalConfig.d.ts +0 -22
  294. package/sqlGlobalConfig.js +0 -22
  295. package/sqlGlobalConfig.js.map +1 -1
  296. package/sqlPermissions.d.ts +36 -34
  297. package/sqlPermissions.js +0 -34
  298. package/sqlPermissions.js.map +1 -1
  299. package/sqlQuery.d.ts +0 -22
  300. package/sqlQuery.js +0 -22
  301. package/sqlQuery.js.map +1 -1
  302. package/sqlTable.d.ts +206 -11
  303. package/sqlTable.js +197 -11
  304. package/sqlTable.js.map +1 -1
  305. package/sqlVisualization.d.ts +42 -12
  306. package/sqlVisualization.js +42 -12
  307. package/sqlVisualization.js.map +1 -1
  308. package/sqlWidget.d.ts +0 -22
  309. package/sqlWidget.js +0 -22
  310. package/sqlWidget.js.map +1 -1
  311. package/storageCredential.d.ts +0 -42
  312. package/storageCredential.js +0 -42
  313. package/storageCredential.js.map +1 -1
  314. package/systemSchema.d.ts +0 -22
  315. package/systemSchema.js +0 -22
  316. package/systemSchema.js.map +1 -1
  317. package/tagPolicy.d.ts +0 -20
  318. package/tagPolicy.js +0 -20
  319. package/tagPolicy.js.map +1 -1
  320. package/types/output.d.ts +6 -0
  321. package/user.d.ts +0 -22
  322. package/user.js +0 -22
  323. package/user.js.map +1 -1
  324. package/vectorSearchEndpoint.d.ts +0 -22
  325. package/vectorSearchEndpoint.js +0 -22
  326. package/vectorSearchEndpoint.js.map +1 -1
  327. package/vectorSearchIndex.d.ts +0 -22
  328. package/vectorSearchIndex.js +0 -22
  329. package/vectorSearchIndex.js.map +1 -1
  330. package/volume.d.ts +0 -22
  331. package/volume.js +0 -22
  332. package/volume.js.map +1 -1
  333. package/warehousesDefaultWarehouseOverride.d.ts +0 -20
  334. package/warehousesDefaultWarehouseOverride.js +0 -20
  335. package/warehousesDefaultWarehouseOverride.js.map +1 -1
  336. package/workspaceBinding.d.ts +20 -12
  337. package/workspaceBinding.js +20 -12
  338. package/workspaceBinding.js.map +1 -1
  339. package/workspaceEntityTagAssignment.d.ts +0 -20
  340. package/workspaceEntityTagAssignment.js +0 -20
  341. package/workspaceEntityTagAssignment.js.map +1 -1
  342. package/workspaceFile.d.ts +0 -22
  343. package/workspaceFile.js +0 -22
  344. package/workspaceFile.js.map +1 -1
  345. package/workspaceNetworkOption.d.ts +0 -20
  346. package/workspaceNetworkOption.js +0 -20
  347. package/workspaceNetworkOption.js.map +1 -1
  348. package/workspaceSettingV2.d.ts +0 -20
  349. package/workspaceSettingV2.js +0 -20
  350. package/workspaceSettingV2.js.map +1 -1
package/mount.js CHANGED
@@ -6,6 +6,335 @@ exports.Mount = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
+ * > Please switch to databricks_volume. DBFS mounts are deprecated.
10
+ *
11
+ * > This resource can only be used with a workspace-level provider!
12
+ *
13
+ * > When `clusterId` is not specified, it will create the smallest possible cluster in the default availability zone with name equal to or starting with `terraform-mount` for the shortest possible amount of time. To avoid mount failure due to potentially quota or capacity issues with the default cluster, we recommend specifying a cluster to use for mounting.
14
+ *
15
+ * > CRUD operations on a databricks mount require a running cluster. Due to limitations of terraform and the databricks mounts APIs, if the cluster the mount was most recently created / updated using no longer exists AND the mount is destroyed as a part of a pulumi up, we mark it as deleted without cleaning it up from the workspace.
16
+ *
17
+ * This resource will [mount your cloud storage](https://docs.databricks.com/data/databricks-file-system.html#mount-object-storage-to-dbfs) on `dbfs:/mnt/name`. Right now it supports mounting AWS S3, Azure (Blob Storage, ADLS Gen1 & Gen2), Google Cloud Storage. It is important to understand that this will start up the cluster if the cluster is terminated. The read and refresh terraform command will require a cluster and may take some time to validate the mount.
18
+ *
19
+ * This resource provides two ways of mounting a storage account:
20
+ *
21
+ * 1. Use a storage-specific configuration block - this could be used for the most cases, as it will fill most of the necessary details. Currently we support following configuration blocks:
22
+ *
23
+ * * `s3` - to [mount AWS S3](https://docs.databricks.com/data/data-sources/aws/amazon-s3.html)
24
+ * * `gs` - to [mount Google Cloud Storage](https://docs.gcp.databricks.com/data/data-sources/google/gcs.html)
25
+ * * `abfs` - to [mount ADLS Gen2](https://docs.microsoft.com/en-us/azure/databricks/data/data-sources/azure/adls-gen2/) using Azure Blob Filesystem (ABFS) driver
26
+ * * `adl` - to [mount ADLS Gen1](https://docs.microsoft.com/en-us/azure/databricks/data/data-sources/azure/azure-datalake) using Azure Data Lake (ADL) driver
27
+ * * `wasb` - to [mount Azure Blob Storage](https://docs.microsoft.com/en-us/azure/databricks/data/data-sources/azure/azure-storage) using Windows Azure Storage Blob (WASB) driver
28
+ *
29
+ * 1. Use generic arguments - you have a responsibility for providing all necessary parameters that are required to mount specific storage. This is most flexible option
30
+ *
31
+ * ## Common arguments
32
+ *
33
+ * * `clusterId` - (Optional, String) Cluster to use for mounting. If no cluster is specified, a new cluster will be created and will mount the bucket for all of the clusters in this workspace. If the cluster is not running - it's going to be started, so be aware to set auto-termination rules on it.
34
+ * * `name` - (Optional, String) Name, under which mount will be accessible in `dbfs:/mnt/<MOUNT_NAME>`. If not specified, provider will try to infer it from depending on the resource type:
35
+ * * `bucketName` for AWS S3 and Google Cloud Storage
36
+ * * `containerName` for ADLS Gen2 and Azure Blob Storage
37
+ * * `storageResourceName` for ADLS Gen1
38
+ * * `uri` - (Optional, String) the URI for accessing specific storage (`s3a://....`, `abfss://....`, `gs://....`, etc.)
39
+ * * `extraConfigs` - (Optional, String map) configuration parameters that are necessary for mounting of specific storage
40
+ * * `resourceId` - (Optional, String) resource ID for a given storage account. Could be used to fill defaults, such as storage account & container names on Azure.
41
+ * * `encryptionType` - (Optional, String) encryption type. Currently used only for [AWS S3 mounts](https://docs.databricks.com/data/data-sources/aws/amazon-s3.html#encrypt-data-in-s3-buckets)
42
+ *
43
+ * ### Example mounting ADLS Gen2 using uri and extraConfigs
44
+ *
45
+ * ```typescript
46
+ * import * as pulumi from "@pulumi/pulumi";
47
+ * import * as databricks from "@pulumi/databricks";
48
+ *
49
+ * const tenantId = "00000000-1111-2222-3333-444444444444";
50
+ * const clientId = "55555555-6666-7777-8888-999999999999";
51
+ * const secretScope = "some-kv";
52
+ * const secretKey = "some-sp-secret";
53
+ * const container = "test";
54
+ * const storageAcc = "lrs";
55
+ * const _this = new databricks.Mount("this", {
56
+ * name: "tf-abfss",
57
+ * uri: `abfss://${container}@${storageAcc}.dfs.core.windows.net`,
58
+ * extraConfigs: {
59
+ * "fs.azure.account.auth.type": "OAuth",
60
+ * "fs.azure.account.oauth.provider.type": "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider",
61
+ * "fs.azure.account.oauth2.client.id": clientId,
62
+ * "fs.azure.account.oauth2.client.secret": `{{secrets/${secretScope}/${secretKey}}}`,
63
+ * "fs.azure.account.oauth2.client.endpoint": `https://login.microsoftonline.com/${tenantId}/oauth2/token`,
64
+ * "fs.azure.createRemoteFileSystemDuringInitialization": "false",
65
+ * },
66
+ * });
67
+ * ```
68
+ *
69
+ * ### Example mounting ADLS Gen2 with AAD passthrough
70
+ *
71
+ * > AAD passthrough is considered a legacy data access pattern. Use Unity Catalog for fine-grained data access control.
72
+ *
73
+ * > Mounts using AAD passthrough cannot be created using a service principal.
74
+ *
75
+ * To mount ALDS Gen2 with Azure Active Directory Credentials passthrough we need to execute the mount commands using the cluster configured with AAD Credentials passthrough & provide necessary configuration parameters (see [documentation](https://docs.microsoft.com/en-us/azure/databricks/security/credential-passthrough/adls-passthrough#--mount-azure-data-lake-storage-to-dbfs-using-credential-passthrough) for more details).
76
+ *
77
+ * ```typescript
78
+ * import * as pulumi from "@pulumi/pulumi";
79
+ * import * as azurerm from "@pulumi/azurerm";
80
+ * import * as databricks from "@pulumi/databricks";
81
+ *
82
+ * const config = new pulumi.Config();
83
+ * // Resource group for Databricks Workspace
84
+ * const resourceGroup = config.require("resourceGroup");
85
+ * // Name of the Databricks Workspace
86
+ * const workspaceName = config.require("workspaceName");
87
+ * const _this = azurerm.index.DatabricksWorkspace({
88
+ * name: workspaceName,
89
+ * resourceGroupName: resourceGroup,
90
+ * });
91
+ * const smallest = databricks.getNodeType({
92
+ * localDisk: true,
93
+ * });
94
+ * const latest = databricks.getSparkVersion({});
95
+ * const sharedPassthrough = new databricks.Cluster("shared_passthrough", {
96
+ * clusterName: "Shared Passthrough for mount",
97
+ * sparkVersion: latest.then(latest => latest.id),
98
+ * nodeTypeId: smallest.then(smallest => smallest.id),
99
+ * autoterminationMinutes: 10,
100
+ * numWorkers: 1,
101
+ * sparkConf: {
102
+ * "spark.databricks.cluster.profile": "serverless",
103
+ * "spark.databricks.repl.allowedLanguages": "python,sql",
104
+ * "spark.databricks.passthrough.enabled": "true",
105
+ * "spark.databricks.pyspark.enableProcessIsolation": "true",
106
+ * },
107
+ * customTags: {
108
+ * ResourceClass: "Serverless",
109
+ * },
110
+ * });
111
+ * // Name of the ADLS Gen2 storage container
112
+ * const storageAcc = config.require("storageAcc");
113
+ * // Name of container inside storage account
114
+ * const container = config.require("container");
115
+ * const passthrough = new databricks.Mount("passthrough", {
116
+ * name: "passthrough-test",
117
+ * clusterId: sharedPassthrough.id,
118
+ * uri: `abfss://${container}@${storageAcc}.dfs.core.windows.net`,
119
+ * extraConfigs: {
120
+ * "fs.azure.account.auth.type": "CustomAccessToken",
121
+ * "fs.azure.account.custom.token.provider.class": "{{sparkconf/spark.databricks.passthrough.adls.gen2.tokenProviderClassName}}",
122
+ * },
123
+ * });
124
+ * ```
125
+ *
126
+ * ## s3 block
127
+ *
128
+ * This block allows specifying parameters for mounting of the ADLS Gen2. The following arguments are required inside the `s3` block:
129
+ *
130
+ * * `instanceProfile` - (Optional) (String) ARN of registered instance profile for data access. If it's not specified, then the `clusterId` should be provided, and the cluster should have an instance profile attached to it. If both `clusterId` & `instanceProfile` are specified, then `clusterId` takes precedence.
131
+ * * `bucketName` - (Required) (String) S3 bucket name to be mounted.
132
+ *
133
+ * ### Example of mounting S3
134
+ *
135
+ * ```typescript
136
+ * import * as pulumi from "@pulumi/pulumi";
137
+ * import * as databricks from "@pulumi/databricks";
138
+ *
139
+ * // now you can do `%fs ls /mnt/experiments` in notebooks
140
+ * const _this = new databricks.Mount("this", {
141
+ * name: "experiments",
142
+ * s3: {
143
+ * instanceProfile: ds.id,
144
+ * bucketName: thisAwsS3Bucket.bucket,
145
+ * },
146
+ * });
147
+ * ```
148
+ *
149
+ * ## abfs block
150
+ *
151
+ * This block allows specifying parameters for mounting of the ADLS Gen2. The following arguments are required inside the `abfs` block:
152
+ *
153
+ * * `clientId` - (Required) (String) This is the clientId (Application Object ID) for the enterprise application for the service principal.
154
+ * * `tenantId` - (Optional) (String) This is your azure directory tenant id. It is required for creating the mount. (Could be omitted if Azure authentication is used, and we can extract `tenantId` from it).
155
+ * * `clientSecretKey` - (Required) (String) This is the secret key in which your service principal/enterprise app client secret will be stored.
156
+ * * `clientSecretScope` - (Required) (String) This is the secret scope in which your service principal/enterprise app client secret will be stored.
157
+ * * `containerName` - (Required) (String) ADLS gen2 container name. (Could be omitted if `resourceId` is provided)
158
+ * * `storageAccountName` - (Required) (String) The name of the storage resource in which the data is. (Could be omitted if `resourceId` is provided)
159
+ * * `directory` - (Computed) (String) This is optional if you don't want to add an additional directory that you wish to mount. This must start with a "/".
160
+ * * `initializeFileSystem` - (Required) (Bool) either or not initialize FS for the first use
161
+ *
162
+ * ### Creating mount for ADLS Gen2 using abfs block
163
+ *
164
+ * In this example, we're using Azure authentication, so we can omit some parameters (`tenantId`, `storageAccountName`, and `containerName`) that will be detected automatically.
165
+ *
166
+ * ```typescript
167
+ * import * as pulumi from "@pulumi/pulumi";
168
+ * import * as azurerm from "@pulumi/azurerm";
169
+ * import * as databricks from "@pulumi/databricks";
170
+ *
171
+ * const terraform = new databricks.SecretScope("terraform", {
172
+ * name: "application",
173
+ * initialManagePrincipal: "users",
174
+ * });
175
+ * const servicePrincipalKey = new databricks.Secret("service_principal_key", {
176
+ * key: "service_principal_key",
177
+ * stringValue: ARM_CLIENT_SECRET,
178
+ * scope: terraform.name,
179
+ * });
180
+ * const _this = new azurerm.index.StorageAccount("this", {
181
+ * name: `${prefix}datalake`,
182
+ * resourceGroupName: resourceGroupName,
183
+ * location: resourceGroupLocation,
184
+ * accountTier: "Standard",
185
+ * accountReplicationType: "GRS",
186
+ * accountKind: "StorageV2",
187
+ * isHnsEnabled: true,
188
+ * });
189
+ * const thisRoleAssignment = new azurerm.index.RoleAssignment("this", {
190
+ * scope: _this.id,
191
+ * roleDefinitionName: "Storage Blob Data Contributor",
192
+ * principalId: current.objectId,
193
+ * });
194
+ * const thisStorageContainer = new azurerm.index.StorageContainer("this", {
195
+ * name: "marketing",
196
+ * storageAccountName: _this.name,
197
+ * containerAccessType: "private",
198
+ * });
199
+ * const marketing = new databricks.Mount("marketing", {
200
+ * name: "marketing",
201
+ * resourceId: thisStorageContainer.resourceManagerId,
202
+ * abfs: {
203
+ * clientId: current.clientId,
204
+ * clientSecretScope: terraform.name,
205
+ * clientSecretKey: servicePrincipalKey.key,
206
+ * initializeFileSystem: true,
207
+ * },
208
+ * });
209
+ * ```
210
+ *
211
+ * ## gs block
212
+ *
213
+ * This block allows specifying parameters for mounting of the Google Cloud Storage. The following arguments are required inside the `gs` block:
214
+ *
215
+ * * `serviceAccount` - (Optional) (String) email of registered [Google Service Account](https://docs.gcp.databricks.com/data/data-sources/google/gcs.html#step-1-set-up-google-cloud-service-account-using-google-cloud-console) for data access. If it's not specified, then the `clusterId` should be provided, and the cluster should have a Google service account attached to it.
216
+ * * `bucketName` - (Required) (String) GCS bucket name to be mounted.
217
+ *
218
+ * ### Example mounting Google Cloud Storage
219
+ *
220
+ * ```typescript
221
+ * import * as pulumi from "@pulumi/pulumi";
222
+ * import * as databricks from "@pulumi/databricks";
223
+ *
224
+ * const thisGs = new databricks.Mount("this_gs", {
225
+ * name: "gs-mount",
226
+ * gs: {
227
+ * serviceAccount: "acc@company.iam.gserviceaccount.com",
228
+ * bucketName: "mybucket",
229
+ * },
230
+ * });
231
+ * ```
232
+ *
233
+ * ## adl block
234
+ *
235
+ * This block allows specifying parameters for mounting of the ADLS Gen1. The following arguments are required inside the `adl` block:
236
+ *
237
+ * * `clientId` - (Required) (String) This is the clientId for the enterprise application for the service principal.
238
+ * * `tenantId` - (Optional) (String) This is your azure directory tenant id. It is required for creating the mount. (Could be omitted if Azure authentication is used, and we can extract `tenantId` from it)
239
+ * * `clientSecretKey` - (Required) (String) This is the secret key in which your service principal/enterprise app client secret will be stored.
240
+ * * `clientSecretScope` - (Required) (String) This is the secret scope in which your service principal/enterprise app client secret will be stored.
241
+ *
242
+ * * `storageResourceName` - (Required) (String) The name of the storage resource in which the data is for ADLS gen 1. This is what you are trying to mount. (Could be omitted if `resourceId` is provided)
243
+ * * `sparkConfPrefix` - (Optional) (String) This is the spark configuration prefix for adls gen 1 mount. The options are `fs.adl`, `dfs.adls`. Use `fs.adl` for runtime 6.0 and above for the clusters. Otherwise use `dfs.adls`. The default value is: `fs.adl`.
244
+ * * `directory` - (Computed) (String) This is optional if you don't want to add an additional directory that you wish to mount. This must start with a "/".
245
+ *
246
+ * ### Example mounting ADLS Gen1
247
+ *
248
+ * ```typescript
249
+ * import * as pulumi from "@pulumi/pulumi";
250
+ * import * as databricks from "@pulumi/databricks";
251
+ *
252
+ * const mount = new databricks.Mount("mount", {
253
+ * name: "{var.RANDOM}",
254
+ * adl: {
255
+ * storageResourceName: "{env.TEST_STORAGE_ACCOUNT_NAME}",
256
+ * tenantId: current.tenantId,
257
+ * clientId: current.clientId,
258
+ * clientSecretScope: terraform.name,
259
+ * clientSecretKey: servicePrincipalKey.key,
260
+ * sparkConfPrefix: "fs.adl",
261
+ * },
262
+ * });
263
+ * ```
264
+ *
265
+ * ## wasb block
266
+ *
267
+ * This block allows specifying parameters for mounting of the Azure Blob Storage. The following arguments are required inside the `wasb` block:
268
+ *
269
+ * * `authType` - (Required) (String) This is the auth type for blob storage. This can either be SAS tokens (`SAS`) or account access keys (`ACCESS_KEY`).
270
+ * * `tokenSecretScope` - (Required) (String) This is the secret scope in which your auth type token is stored.
271
+ * * `tokenSecretKey` - (Required) (String) This is the secret key in which your auth type token is stored.
272
+ * * `containerName` - (Required) (String) The container in which the data is. This is what you are trying to mount. (Could be omitted if `resourceId` is provided)
273
+ * * `storageAccountName` - (Required) (String) The name of the storage resource in which the data is. (Could be omitted if `resourceId` is provided)
274
+ * * `directory` - (Computed) (String) This is optional if you don't want to add an additional directory that you wish to mount. This must start with a "/".
275
+ *
276
+ * ### Example mounting Azure Blob Storage
277
+ *
278
+ * ```typescript
279
+ * import * as pulumi from "@pulumi/pulumi";
280
+ * import * as azurerm from "@pulumi/azurerm";
281
+ * import * as databricks from "@pulumi/databricks";
282
+ *
283
+ * const blobaccount = new azurerm.index.StorageAccount("blobaccount", {
284
+ * name: `${prefix}blob`,
285
+ * resourceGroupName: resourceGroupName,
286
+ * location: resourceGroupLocation,
287
+ * accountTier: "Standard",
288
+ * accountReplicationType: "LRS",
289
+ * accountKind: "StorageV2",
290
+ * });
291
+ * const marketing = new azurerm.index.StorageContainer("marketing", {
292
+ * name: "marketing",
293
+ * storageAccountName: blobaccount.name,
294
+ * containerAccessType: "private",
295
+ * });
296
+ * const terraform = new databricks.SecretScope("terraform", {
297
+ * name: "application",
298
+ * initialManagePrincipal: "users",
299
+ * });
300
+ * const storageKey = new databricks.Secret("storage_key", {
301
+ * key: "blob_storage_key",
302
+ * stringValue: blobaccount.primaryAccessKey,
303
+ * scope: terraform.name,
304
+ * });
305
+ * const marketingMount = new databricks.Mount("marketing", {
306
+ * name: "marketing",
307
+ * wasb: {
308
+ * containerName: marketing.name,
309
+ * storageAccountName: blobaccount.name,
310
+ * authType: "ACCESS_KEY",
311
+ * tokenSecretScope: terraform.name,
312
+ * tokenSecretKey: storageKey.key,
313
+ * },
314
+ * });
315
+ * ```
316
+ *
317
+ * ## Migration from other mount resources
318
+ *
319
+ * Migration from the specific mount resource is straightforward:
320
+ *
321
+ * * rename `mountName` to `name`
322
+ * * wrap storage-specific settings (`containerName`, ...) into corresponding block (`adl`, `abfs`, `s3`, `wasbs`)
323
+ * * for S3 mounts, rename `s3BucketName` to `bucketName`
324
+ *
325
+ * ## Related Resources
326
+ *
327
+ * The following resources are often used in the same context:
328
+ *
329
+ * * End to end workspace management guide.
330
+ * * databricks.getAwsBucketPolicy data to configure a simple access policy for AWS S3 buckets, so that Databricks can access data in it.
331
+ * * databricks.Cluster to create [Databricks Clusters](https://docs.databricks.com/clusters/index.html).
332
+ * * databricks.DbfsFile data to get file content from [Databricks File System (DBFS)](https://docs.databricks.com/data/databricks-file-system.html).
333
+ * * databricks.getDbfsFilePaths data to get list of file names from get file content from [Databricks File System (DBFS)](https://docs.databricks.com/data/databricks-file-system.html).
334
+ * * databricks.DbfsFile to manage relatively small files on [Databricks File System (DBFS)](https://docs.databricks.com/data/databricks-file-system.html).
335
+ * * databricks.InstanceProfile to manage AWS EC2 instance profiles that users can launch databricks.Cluster and access data, like databricks_mount.
336
+ * * databricks.Library to install a [library](https://docs.databricks.com/libraries/index.html) on databricks_cluster.
337
+ *
9
338
  * ## Import
10
339
  *
11
340
  * !> Importing this resource is not currently supported.
package/mount.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"mount.js","sourceRoot":"","sources":["../mount.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEj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,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC;YAChC,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC;YAClC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AAtFL,sBAuFC;AAzEG,gBAAgB;AACO,kBAAY,GAAG,8BAA8B,CAAC"}
@@ -1,5 +1,11 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
+ * This resource to configure the cross-account role for creation of new workspaces within AWS.
4
+ *
5
+ * > This resource can only be used with an account-level provider!
6
+ *
7
+ * Please follow this complete runnable example with new VPC and new workspace setup. Please pay special attention to the fact that there you have two different instances of a databricks provider - one for deploying workspaces (with `host="https://accounts.cloud.databricks.com/"`) and another for the workspace you've created with `databricks.MwsWorkspaces` resource. If you want both creation of workspaces & clusters within workspace within the same terraform module (essentially same directory), you should use the provider aliasing feature of Pulumi. We strongly recommend having one terraform module for creation of workspace + PAT token and the rest in different modules.
8
+ *
3
9
  * ## Example Usage
4
10
  *
5
11
  * ```typescript
@@ -42,28 +48,6 @@ import * as pulumi from "@pulumi/pulumi";
42
48
  * * databricks.MwsNetworks to [configure VPC](https://docs.databricks.com/administration-guide/cloud-configurations/aws/customer-managed-vpc.html) & subnets for new workspaces within AWS.
43
49
  * * databricks.MwsStorageConfigurations to configure root bucket new workspaces within AWS.
44
50
  * * databricks.MwsWorkspaces to set up [AWS and GCP workspaces](https://docs.databricks.com/getting-started/overview.html#e2-architecture-1).
45
- *
46
- * ## Import
47
- *
48
- * This resource can be imported by the combination of its identifier and the account id:
49
- *
50
- * hcl
51
- *
52
- * import {
53
- *
54
- * to = databricks_mws_credentials.this
55
- *
56
- * id = "<account_id>/<credentials_id>"
57
- *
58
- * }
59
- *
60
- * Alternatively, when using `terraform` version 1.4 or earlier, import using the `pulumi import` command:
61
- *
62
- * bash
63
- *
64
- * ```sh
65
- * $ pulumi import databricks:index/mwsCredentials:MwsCredentials this <account_id>/<credentials_id>
66
- * ```
67
51
  */
68
52
  export declare class MwsCredentials extends pulumi.CustomResource {
69
53
  /**
package/mwsCredentials.js CHANGED
@@ -6,6 +6,12 @@ exports.MwsCredentials = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
+ * This resource to configure the cross-account role for creation of new workspaces within AWS.
10
+ *
11
+ * > This resource can only be used with an account-level provider!
12
+ *
13
+ * Please follow this complete runnable example with new VPC and new workspace setup. Please pay special attention to the fact that there you have two different instances of a databricks provider - one for deploying workspaces (with `host="https://accounts.cloud.databricks.com/"`) and another for the workspace you've created with `databricks.MwsWorkspaces` resource. If you want both creation of workspaces & clusters within workspace within the same terraform module (essentially same directory), you should use the provider aliasing feature of Pulumi. We strongly recommend having one terraform module for creation of workspace + PAT token and the rest in different modules.
14
+ *
9
15
  * ## Example Usage
10
16
  *
11
17
  * ```typescript
@@ -48,28 +54,6 @@ const utilities = require("./utilities");
48
54
  * * databricks.MwsNetworks to [configure VPC](https://docs.databricks.com/administration-guide/cloud-configurations/aws/customer-managed-vpc.html) & subnets for new workspaces within AWS.
49
55
  * * databricks.MwsStorageConfigurations to configure root bucket new workspaces within AWS.
50
56
  * * databricks.MwsWorkspaces to set up [AWS and GCP workspaces](https://docs.databricks.com/getting-started/overview.html#e2-architecture-1).
51
- *
52
- * ## Import
53
- *
54
- * This resource can be imported by the combination of its identifier and the account id:
55
- *
56
- * hcl
57
- *
58
- * import {
59
- *
60
- * to = databricks_mws_credentials.this
61
- *
62
- * id = "<account_id>/<credentials_id>"
63
- *
64
- * }
65
- *
66
- * Alternatively, when using `terraform` version 1.4 or earlier, import using the `pulumi import` command:
67
- *
68
- * bash
69
- *
70
- * ```sh
71
- * $ pulumi import databricks:index/mwsCredentials:MwsCredentials this <account_id>/<credentials_id>
72
- * ```
73
57
  */
74
58
  class MwsCredentials extends pulumi.CustomResource {
75
59
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"mwsCredentials.js","sourceRoot":"","sources":["../mwsCredentials.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAkCD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,WAAW,CAAC,GAAG,KA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U,CAAC;YACjD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;SAC9C;aAAM;YACH,MAAM,IAAI,GAAG,WAA6C,CAAC;YAC3D,IAAI,IAAI,EAAE,eAAe,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClD,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;aAClE;YACD,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAxFL,wCAyFC;AA3EG,gBAAgB;AACO,2BAAY,GAAG,gDAAgD,CAAC"}
@@ -2,6 +2,15 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
4
  /**
5
+ * This resource to configure KMS keys for new workspaces within AWS or GCP. This is to support the following features:
6
+ *
7
+ * * [Customer-managed keys for managed services](https://docs.databricks.com/security/keys/customer-managed-keys-managed-services-aws.html): Encrypt the workspace's managed services data in the control plane, including notebooks, secrets, Databricks SQL queries, and Databricks SQL query history with a CMK.
8
+ * * [Customer-managed keys for workspace storage](https://docs.databricks.com/security/keys/customer-managed-keys-storage-aws.html): Encrypt the workspace's root S3 bucket and clusters' EBS volumes with a CMK.
9
+ *
10
+ * > This resource can only be used with an account-level provider!
11
+ *
12
+ * Please follow this complete runnable example with new VPC and new workspace setup. Please pay special attention to the fact that there you have two different instances of a databricks provider - one for deploying workspaces (with `host="https://accounts.cloud.databricks.com/"`) and another for the workspace you've created with databricks.MwsWorkspaces resource. If you want both creation of workspaces & clusters within workspace within the same terraform module (essentially same directory), you should use the provider aliasing feature of Pulumi. We strongly recommend having one Pulumi module for creation of workspace + PAT token and the rest in different modules.
13
+ *
5
14
  * ## Example Usage
6
15
  *
7
16
  * > If you've used the resource before, please add `useCases = ["MANAGED_SERVICES"]` to keep the previous behaviour.
@@ -62,32 +71,6 @@ import * as outputs from "./types/output";
62
71
  * * databricks.MwsNetworks to [configure VPC](https://docs.databricks.com/administration-guide/cloud-configurations/aws/customer-managed-vpc.html) & subnets for new workspaces within AWS.
63
72
  * * databricks.MwsStorageConfigurations to configure root bucket new workspaces within AWS.
64
73
  * * databricks.MwsWorkspaces to set up [AWS and GCP workspaces](https://docs.databricks.com/getting-started/overview.html#e2-architecture-1).
65
- *
66
- * ## Import
67
- *
68
- * This resource can be imported by Databricks account ID and customer managed key ID.
69
- *
70
- * hcl
71
- *
72
- * import {
73
- *
74
- * to = databricks_mws_customer_managed_keys.this
75
- *
76
- * id = "<account_id>/<customer_managed_key_id>"
77
- *
78
- * }
79
- *
80
- * Alternatively, when using `terraform` version 1.4 or earlier, import using the `pulumi import` command:
81
- *
82
- * ```sh
83
- * $ pulumi import databricks:index/mwsCustomerManagedKeys:MwsCustomerManagedKeys this '<account_id>/<customer_managed_key_id>'
84
- * ```
85
- *
86
- * ~> This resource does not support updates. If your configuration does not match the existing resource,
87
- *
88
- * the next `pulumi up` will cause the resource to be destroyed and recreated. After importing,
89
- *
90
- * verify that the configuration matches the existing resource by running `pulumi preview`.
91
74
  */
92
75
  export declare class MwsCustomerManagedKeys extends pulumi.CustomResource {
93
76
  /**
@@ -6,6 +6,15 @@ exports.MwsCustomerManagedKeys = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
+ * This resource to configure KMS keys for new workspaces within AWS or GCP. This is to support the following features:
10
+ *
11
+ * * [Customer-managed keys for managed services](https://docs.databricks.com/security/keys/customer-managed-keys-managed-services-aws.html): Encrypt the workspace's managed services data in the control plane, including notebooks, secrets, Databricks SQL queries, and Databricks SQL query history with a CMK.
12
+ * * [Customer-managed keys for workspace storage](https://docs.databricks.com/security/keys/customer-managed-keys-storage-aws.html): Encrypt the workspace's root S3 bucket and clusters' EBS volumes with a CMK.
13
+ *
14
+ * > This resource can only be used with an account-level provider!
15
+ *
16
+ * Please follow this complete runnable example with new VPC and new workspace setup. Please pay special attention to the fact that there you have two different instances of a databricks provider - one for deploying workspaces (with `host="https://accounts.cloud.databricks.com/"`) and another for the workspace you've created with databricks.MwsWorkspaces resource. If you want both creation of workspaces & clusters within workspace within the same terraform module (essentially same directory), you should use the provider aliasing feature of Pulumi. We strongly recommend having one Pulumi module for creation of workspace + PAT token and the rest in different modules.
17
+ *
9
18
  * ## Example Usage
10
19
  *
11
20
  * > If you've used the resource before, please add `useCases = ["MANAGED_SERVICES"]` to keep the previous behaviour.
@@ -66,32 +75,6 @@ const utilities = require("./utilities");
66
75
  * * databricks.MwsNetworks to [configure VPC](https://docs.databricks.com/administration-guide/cloud-configurations/aws/customer-managed-vpc.html) & subnets for new workspaces within AWS.
67
76
  * * databricks.MwsStorageConfigurations to configure root bucket new workspaces within AWS.
68
77
  * * databricks.MwsWorkspaces to set up [AWS and GCP workspaces](https://docs.databricks.com/getting-started/overview.html#e2-architecture-1).
69
- *
70
- * ## Import
71
- *
72
- * This resource can be imported by Databricks account ID and customer managed key ID.
73
- *
74
- * hcl
75
- *
76
- * import {
77
- *
78
- * to = databricks_mws_customer_managed_keys.this
79
- *
80
- * id = "<account_id>/<customer_managed_key_id>"
81
- *
82
- * }
83
- *
84
- * Alternatively, when using `terraform` version 1.4 or earlier, import using the `pulumi import` command:
85
- *
86
- * ```sh
87
- * $ pulumi import databricks:index/mwsCustomerManagedKeys:MwsCustomerManagedKeys this '<account_id>/<customer_managed_key_id>'
88
- * ```
89
- *
90
- * ~> This resource does not support updates. If your configuration does not match the existing resource,
91
- *
92
- * the next `pulumi up` will cause the resource to be destroyed and recreated. After importing,
93
- *
94
- * verify that the configuration matches the existing resource by running `pulumi preview`.
95
78
  */
96
79
  class MwsCustomerManagedKeys extends pulumi.CustomResource {
97
80
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"mwsCustomerManagedKeys.js","sourceRoot":"","sources":["../mwsCustomerManagedKeys.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuFG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7E,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,sBAAsB,CAAC,YAAY,CAAC;IAC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,IAAI,CAAC,CAAC;IAC3E,CAAC;;AA3FL,wDA4FC;AA9EG,gBAAgB;AACO,mCAAY,GAAG,gEAAgE,CAAC"}
@@ -64,26 +64,6 @@ import * as pulumi from "@pulumi/pulumi";
64
64
  *
65
65
  * * databricks.MwsNetworkConnectivityConfig to create Network Connectivity Config objects.
66
66
  * * databricks.MwsNccBinding to attach an NCC to a workspace.
67
- *
68
- * ## Import
69
- *
70
- * This resource can be imported by Databricks account ID and Network Connectivity Config ID.
71
- *
72
- * hcl
73
- *
74
- * import {
75
- *
76
- * to = databricks_mws_ncc_private_endpoint_rule.this
77
- *
78
- * id = "<network_connectivity_config_id>/<rule_id>"
79
- *
80
- * }
81
- *
82
- * Alternatively, when using `terraform` version 1.4 or earlier, import using the `pulumi import` command:
83
- *
84
- * ```sh
85
- * $ pulumi import databricks:index/mwsNccPrivateEndpointRule:MwsNccPrivateEndpointRule this "<network_connectivity_config_id>/<rule_id>"
86
- * ```
87
67
  */
88
68
  export declare class MwsNccPrivateEndpointRule extends pulumi.CustomResource {
89
69
  /**
@@ -70,26 +70,6 @@ const utilities = require("./utilities");
70
70
  *
71
71
  * * databricks.MwsNetworkConnectivityConfig to create Network Connectivity Config objects.
72
72
  * * databricks.MwsNccBinding to attach an NCC to a workspace.
73
- *
74
- * ## Import
75
- *
76
- * This resource can be imported by Databricks account ID and Network Connectivity Config ID.
77
- *
78
- * hcl
79
- *
80
- * import {
81
- *
82
- * to = databricks_mws_ncc_private_endpoint_rule.this
83
- *
84
- * id = "<network_connectivity_config_id>/<rule_id>"
85
- *
86
- * }
87
- *
88
- * Alternatively, when using `terraform` version 1.4 or earlier, import using the `pulumi import` command:
89
- *
90
- * ```sh
91
- * $ pulumi import databricks:index/mwsNccPrivateEndpointRule:MwsNccPrivateEndpointRule this "<network_connectivity_config_id>/<rule_id>"
92
- * ```
93
73
  */
94
74
  class MwsNccPrivateEndpointRule extends pulumi.CustomResource {
95
75
  /**
@@ -1 +1 @@
1
- {"version":3,"file":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