Open vcolano opened 4 months ago
I has the same issue with you. In databricks_job
resource, it always shows changes to the task when using terraform plan
even I didn't change anything in the config file.
I have the same issue with databricks_permissions for the SQL endpoint. databricks provider version = "1.41.0"
I believe the issue with databricks_permissions
diff may be related to the fact that this resource currently removes the IS_OWNER permission from the state, so Terraform always plans to add the IS_OWNER block. At the same time, we don't want to add IS_OWNER to the state when the user hasn't specified it, otherwise there will be a diff showing IS_OWNER
being removed. I have a PR that might address this by including IS_OWNER in the state when the user explicitly has included it in their configuration, otherwise leaving it out: https://github.com/databricks/terraform-provider-databricks/pull/3956.
We are also seeing the same issue when deploying databricks_job
and databricks_permissions
resources.
For databricks_job
, another parameter that keeps showing as diff in every TF deployment is job-level timeout setting:
# databricks_job.routing_job_node_types will be updated in-place
~ resource "databricks_job" "routing_job_node_types" {
always_running = false
control_run_state = false
format = "MULTI_TASK"
id = "491136304029932"
max_concurrent_runs = 1
max_retries = 0
min_retry_interval_millis = 0
name = "Routing Job for node_types (routing_job_node_types)"
retry_on_timeout = false
tags = {
"clusterIdentifier" = "routing_job"
"clusterOwner" = "eng-foresight-team"
}
~ timeout_seconds = 0 -> 18000
....
}
timeout_seconds
is the only diff for this resource, and shows up every time even though it's already been applied previously.
I have a databricks_job resource and related databricks_permission resource defined in the following configuration. After applying the initial changes the first time in
terraform apply
I ran aterraform plan
and to my surprise, there were changes listed even though the configuration nor the actual resources themselves changed at all. I can keep runningterraform apply
on this configuration over and over and I the same changes listed each time.Configuration
Expected Behavior
After the first apply, when I try to apply again there should be no changes since the resources nor the configuration which defines them has changed.
Actual Behavior
Each time I run terraform apply, I get the same output:
Steps to Reproduce
terraform apply
multiple timesTerraform and provider versions
databricks provider version = "1.42.0"
Is it a regression?
No.
Important Factoids
The task ordering issue seems related to https://discuss.hashicorp.com/t/dynamic-task-foreach-order-changes/48699/7 As for the permissions, I do not understand why it removes/re-adds the same
access_control
blocks each time...