It should be possible to destroy the resource databricks_workspace_conf or to remove the "maxTokenLifetimeDays" field after setting it to some value
Actual Behavior
Currently destroying databricks_workspace_conf is not allowed after setting maxTokenLifetimeDays to a value. It throws the error │ Error: cannot delete workspace conf: Some values are not allowed: {"maxTokenLifetimeDays":""}
Steps to Reproduce
create a databricks_workspace_conf resource
2) Remove or comment the field maxTokenLifetimeDays and run apply or try destroying the entire resource. Terraform will return
Error: cannot update workspace conf: Some values are not allowed: {"maxTokenLifetimeDays":""}
3) Try adding the field "maxTokenLifetimeDays": 90 back and terraform will pass
4) Try destroying the resource after adding maxTokenLifetimeDays back, Terraform will fail with the same error even after adding it back
It looks like once the value maxTokenLifetimeDays is set once, the resource gets into a state where it cannot be destroyed in Terraform
Configuration
Expected Behavior
It should be possible to destroy the resource databricks_workspace_conf or to remove the "maxTokenLifetimeDays" field after setting it to some value
Actual Behavior
Currently destroying databricks_workspace_conf is not allowed after setting maxTokenLifetimeDays to a value. It throws the error │ Error: cannot delete workspace conf: Some values are not allowed: {"maxTokenLifetimeDays":""}
Steps to Reproduce
2) Remove or comment the field maxTokenLifetimeDays and run apply or try destroying the entire resource. Terraform will return
Error: cannot update workspace conf: Some values are not allowed: {"maxTokenLifetimeDays":""}
3) Try adding the field "maxTokenLifetimeDays": 90 back and terraform will pass
4) Try destroying the resource after adding maxTokenLifetimeDays back, Terraform will fail with the same error even after adding it back
It looks like once the value maxTokenLifetimeDays is set once, the resource gets into a state where it cannot be destroyed in Terraform
Terraform and provider versions
provider registry.terraform.io/databricks/databricks v1.37.1
Is it a regression?
Debug Output
2024-02-29T10:07:57.769-0600 [DEBUG] provider.terraform-provider-databricks_v1.37.1: PATCH /api/2.0/workspace-conf
Error: cannot delete workspace conf: Some values are not allowed: {"maxTokenLifetimeDays":""}
Important Factoids
Would you like to implement a fix?