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
when creating a workspace in our account, the deployment name is getting prefixed with our account prefix, which is intended behaviour. Creating the resource with terraform, we don't additionally set the prefix, as it automatically gets set by databricks. So the deployment name will eventually end up being <prefix>-<deployment_name>.
The issue starts when rerunning the terraform deployment, as terraform will not be aware of the prefixed deployment name and tries to recreate the resource.
As a workaround, I tried to prefix the resource myself, rather than letting databricks do it, but the resource then I end up getting a deployment with double prefix like<prefix>-<prefix>-<deployment_name> and the resource still recreates on a terraform rerun.
Terraform shouldn't recreate the workspace resource for accounts when databricks adds a prefix, but rather detect the prefix and consider it in the change plan.
Actual Behavior
Terraform recreates the workspace resource.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered:
In the meantime, a possible workaround for this issue is just to add a lifecycle to ignore the changes on the deployment_name for the resource databricks_mws_workspaces
Hi,
when creating a workspace in our account, the deployment name is getting prefixed with our account prefix, which is intended behaviour. Creating the resource with terraform, we don't additionally set the prefix, as it automatically gets set by databricks. So the deployment name will eventually end up being
<prefix>-<deployment_name>
.The issue starts when rerunning the terraform deployment, as terraform will not be aware of the prefixed deployment name and tries to recreate the resource.
As a workaround, I tried to prefix the resource myself, rather than letting databricks do it, but the resource then I end up getting a deployment with double prefix like
<prefix>-<prefix>-<deployment_name>
and the resource still recreates on a terraform rerun.Terraform Version
Terraform v0.12.25
Affected Resource(s)
Environment variable names
AWS
Terraform Configuration Files
which correspond in the UI as
Debug Output
Expected Behavior
Terraform shouldn't recreate the workspace resource for accounts when databricks adds a prefix, but rather detect the prefix and consider it in the change plan.
Actual Behavior
Terraform recreates the workspace resource.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: