From d55e304d6113b4e647cd3a176a0198a026034bd6 Mon Sep 17 00:00:00 2001 From: Vladimir Lazarenko Date: Fri, 20 Jan 2023 12:01:04 +0000 Subject: [PATCH] Changes for no_public_ip --- internal/services/databricks/databricks_workspace_resource.go | 1 - website/docs/r/databricks_workspace.html.markdown | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/services/databricks/databricks_workspace_resource.go b/internal/services/databricks/databricks_workspace_resource.go index 893db74741b8..132af021c092 100644 --- a/internal/services/databricks/databricks_workspace_resource.go +++ b/internal/services/databricks/databricks_workspace_resource.go @@ -182,7 +182,6 @@ func resourceDatabricksWorkspace() *pluginsdk.Resource { "no_public_ip": { Type: pluginsdk.TypeBool, - ForceNew: true, Optional: true, Computed: true, AtLeastOneOf: workspaceCustomParametersString(), diff --git a/website/docs/r/databricks_workspace.html.markdown b/website/docs/r/databricks_workspace.html.markdown index ad7f35ea64f4..f4fb905c265f 100644 --- a/website/docs/r/databricks_workspace.html.markdown +++ b/website/docs/r/databricks_workspace.html.markdown @@ -82,7 +82,9 @@ A `custom_parameters` block supports the following: * `public_ip_name` - (Optional) Name of the Public IP for No Public IP workspace with managed vNet. Defaults to `nat-gw-public-ip`. Changing this forces a new resource to be created. -* `no_public_ip` - (Optional) Are public IP Addresses not allowed? Possible values are `true` or `false`. Defaults to `false`. Changing this forces a new resource to be created. +* `no_public_ip` - (Optional) Are public IP Addresses not allowed? Possible values are `true` or `false`. Defaults to `false`. + +~> **NOTE** Updating `no_public_ip` parameter is only allowed if the value is changing from `false` to `true` and and only for VNet-injected workspaces. * `public_subnet_name` - (Optional) The name of the Public Subnet within the Virtual Network. Required if `virtual_network_id` is set. Changing this forces a new resource to be created.