Databricks aws mws workspaces

Error: cannot create mws workspaces: MALFORMED_REQUEST: Failed parameter validation checks: Deployment name cannot be used until a deployment name prefix is defined. Please contact your Databricks representative

│ with databricks_mws_workspaces.this,
│ on main.tf line 207, in resource “databricks_mws_workspaces” “this”:
│ 207: resource “databricks_mws_workspaces” “this”

locals {
prefix = “demo${random_string.naming.result}”
}

// initialize provider in “MWS” mode to provision new workspace
provider “databricks” {
alias = “mws”
host = “https://accounts.cloud.databricks.com
username = var.databricks_account_username
password = var.databricks_account_password
}

///////////// WORKSPACE /////////////////////

resource “databricks_mws_workspaces” “this” {
provider = databricks.mws
account_id = var.databricks_account_id
aws_region = var.region
workspace_name = local.prefix
deployment_name = local.prefix

credentials_id = databricks_mws_credentials.this.credentials_id
storage_configuration_id = databricks_mws_storage_configurations.this.storage_configuration_id
network_id = databricks_mws_networks.this.network_id

token {
comment = “Terraform”
}
}