Closed MBKraus closed 2 months ago
It looks like a permadiff
, in my case I didn't experience a change in the container_image
but have a similar behavior with other arguments having the next result even without making any changes:
# google_workbench_instance.gbi_18827 will be updated in-place
~ resource "google_workbench_instance" "gbi_18827" {
id = "projects/terraform-dev-gtiscareno-org/locations/us-central1-a/instances/gbi-18827"
name = "gbi-18827"
# (15 unchanged attributes hidden)
~ gce_setup {
~ metadata = {
- "cos-update-strategy" = "update_disabled" -> null
- "google-logging-enabled" = "true" -> null
- "service-account-mode" = "true" -> null
# (18 unchanged elements hidden)
}
tags = [
"deeplearning-vm",
"notebook-instance",
]
# (3 unchanged attributes hidden)
# (7 unchanged blocks hidden)
}
}
Plan: 0 to add, 1 to change, 0 to destroy.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
Terraform Version & Provider Version(s)
Terraform v1.9.2
Affected Resource(s)
google_workbench_instance
Terraform Configuration
Debug Output
The GCE setup of the workbench instances keeps on getting updated at each run(as per the plan below)
~ module.vertex_user['name'].google_workbench_instance.user_workbench id : "asd name : "instance-mike" ~ gce_setup { tags : []
Expected Behavior
When pinning the image and the tag and code, I'd not expect it to be 'updated' and present in the TF plan every time I do a TF run.
I could ignore this through "lifecycle.ignore_changes", but in that case it would quite cumbersome to bump the tag of an workbench_instance
Actual Behavior
Every time I do a TF run, the workbench_instance is in the TF Plan and indicates that the repository and tag are going to be "updated" (even though the actual resources are running at the specified image and tag)
Steps to reproduce
terraform apply
Important Factoids
No response
References
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/workbench_instance
b/357693909