From 7508c1bb50480abc8c112c9c0a56d6bb0c182168 Mon Sep 17 00:00:00 2001 From: Alex Ott Date: Tue, 21 Oct 2025 09:08:06 +0200 Subject: [PATCH] Document support for serverless workspaces on GCP We also don't need preview of managed storage for it. --- NEXT_CHANGELOG.md | 1 + docs/resources/mws_workspaces.md | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index ef006a79cd..68a741f0fd 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -10,6 +10,7 @@ ### Documentation +* Document support for serverless workspaces on GCP ([#5124](https://github.com/databricks/terraform-provider-databricks/pull/5124)) * Document `git_email` in `databricks_git_credential` resource ([#5099](https://github.com/databricks/terraform-provider-databricks/pull/5099)) ### Exporter diff --git a/docs/resources/mws_workspaces.md b/docs/resources/mws_workspaces.md index 5a67accd7d..97c5748a32 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)