You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource"databricks_mws_workspaces""this" {
provider=databricks.mwsaccount_id=var.databricks_account_idaws_region=var.aws_regionworkspace_name=local.workspace_name_with_envcredentials_id=databricks_mws_credentials.this.credentials_idstorage_configuration_id=databricks_mws_storage_configurations.this.storage_configuration_idnetwork_id=databricks_mws_networks.privatelink_enabled.network_idprivate_access_settings_id=databricks_mws_private_access_settings.pas.private_access_settings_idmanaged_services_customer_managed_key_id=databricks_mws_customer_managed_keys.dbx_cmk.customer_managed_key_id# this field was newly addedstorage_customer_managed_key_id=databricks_mws_customer_managed_keys.dbx_cmk.customer_managed_key_id# this field was
newly added
}
Actual Behavior
When applying this, it failed. This is okay:
* Failed to execute "tofu apply -auto-approve -input=false -auto-approve" in <my_path>
╷
│ Error: cannot update mws workspaces: INVALID_STATE: Please terminate all pool & cluster EC2 instances in your workspace subnets before attempting to update the workspace.
│
│ with databricks_mws_workspaces.this,
│ on main.tf line 126, in resource "databricks_mws_workspaces" "this":
│ 126: resource "databricks_mws_workspaces" "this" {
│
After terminating all pool & cluster EC2 instances in the target workspace subnets, I've applied this again but it said "No changes" ....
so I needed to run the following command to reflect this change.
after creating the workspace, run terraform apply the following while having some computes in the subnet, which will fail:
resource"databricks_mws_workspaces""this" {
provider=databricks.mwsaccount_id=var.databricks_account_idaws_region=var.aws_regionworkspace_name=local.workspace_name_with_envcredentials_id=databricks_mws_credentials.this.credentials_idstorage_configuration_id=databricks_mws_storage_configurations.this.storage_configuration_idnetwork_id=databricks_mws_networks.privatelink_enabled.network_idprivate_access_settings_id=databricks_mws_private_access_settings.pas.private_access_settings_idmanaged_services_customer_managed_key_id=databricks_mws_customer_managed_keys.dbx_cmk.customer_managed_key_id# this field was newly addedstorage_customer_managed_key_id=databricks_mws_customer_managed_keys.dbx_cmk.customer_managed_key_id# this field was
newly added
}
run terraform apply again, you will get "No changes"
Terraform and provider versions
the latest. (v1.65.1)
Is it a regression?
Debug Output
Important Factoids
Would you like to implement a fix?
yes if possible
The text was updated successfully, but these errors were encountered:
LittleWat
changed the title
[ISSUE] Issue with databricks_mws_workspaces resource
[ISSUE] Issue with databricks_mws_workspaces resource regarding the key_id
Feb 12, 2025
Configuration
Actual Behavior
When applying this, it failed. This is okay:
After terminating all pool & cluster EC2 instances in the target workspace subnets, I've applied this again but it said "No changes" ....
so I needed to run the following command to reflect this change.
Expected Behavior
Even after failing in applying once, it should detect the change in
databricks_mws_workspaces
Steps to Reproduce
1 terraform apply the following:
terraform apply
the following while having some computes in the subnet, which will fail:terraform apply
again, you will get "No changes"Terraform and provider versions
the latest. (v1.65.1)
Is it a regression?
Debug Output
Important Factoids
Would you like to implement a fix?
yes if possible
The text was updated successfully, but these errors were encountered: