diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 765eef12b6..579f623291 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -14,6 +14,8 @@ ### Documentation +* Document support for serverless workspaces on GCP ([#5124](https://github.com/databricks/terraform-provider-databricks/pull/5124)) + ### Exporter ### Internal Changes diff --git a/docs/resources/mws_workspaces.md b/docs/resources/mws_workspaces.md index 13eae10b08..cf98572167 100644 --- a/docs/resources/mws_workspaces.md +++ b/docs/resources/mws_workspaces.md @@ -13,11 +13,11 @@ This resource allows you to set up [workspaces on AWS](https://docs.databricks.c ## Example Usage -### Creating a serverless workspace in AWS +### Creating a serverless workspace in AWS and GCP Creating a serverless workspace does not require any prerequisite resources. Simply specify `compute_mode = "SERVERLESS"` when creating the workspace. Serverless workspaces must not include `credentials_id` or `storage_configuration_id`. -To use serverless workspaces, you must enroll in the [Default Storage preview](https://docs.databricks.com/aws/en/storage/express-storage). +On [AWS](https://docs.databricks.com/aws/en/admin/workspace/serverless-workspaces): ```hcl resource "databricks_mws_workspaces" "serverless_workspace" { @@ -28,6 +28,17 @@ resource "databricks_mws_workspaces" "serverless_workspace" { } ``` +On [GCP](https://docs.databricks.com/gcp/en/admin/workspace/serverless-workspaces): + +```hcl +resource "databricks_mws_workspaces" "serverless_workspace" { + account_id = "" # Your Databricks account ID + workspace_name = "serverless-workspace" + location = "us-east4" + compute_mode = "SERVERLESS" +} +``` + ### Creating a workspace on AWS ![Simplest multiworkspace](https://raw.githubusercontent.com/databricks/terraform-provider-databricks/main/docs/simplest-multiworkspace.png)