1. create a databricks MWS workspace

    TypeScript

    Here's how you could create a Databricks MWS workspace using Pulumi and TypeScript.

    This example outlines the creation of a MWS workspace using the AWS cloud platform. Values for accountId, credentialsId, networkId, privateAccessSettingsId, and storageConfigurationId have to be replaced with appropriate values according to your existing Databricks and AWS setup.

    import * as databricks from "@pulumi/databricks"; const workspace = new databricks.MwsWorkspace("myWorkspace", { accountId: "<account-id>", // Replace with your account ID. awsRegion: "us-west-2", workspaceName: "my-databricks-workspace", deploymentName: "databricks-deployment", credentialsId: "<credentials-id>", // Replace with your credentials ID. storageConfigurationId: "<storage-configuration-id>", // Replace with your storage configuration ID. networkId: "<network-id>", // Replace with your network ID. privateAccessSettingsId: "<private-access-settings-id>", // Replace with your private access settings ID. }); export const workspaceUrl = workspace.workspaceUrl; export const workspaceId = workspace.workspaceId;

    This TypeScript program uses the databricks.MwsWorkspace resource to create a Databricks MWS workspace. The export lines will export the workspace URL and ID from the Pulumi stack once the program has run.

    Please refer to the Pulumi and Databricks documentation for details on how to obtain your Databricks account ID, credentials ID, storage configuration ID, network ID, and private access settings ID.