-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
terraform_labels can't be updated on google_compute_instance_template #16374
terraform_labels can't be updated on google_compute_instance_template #16374
Comments
Sorry for the issue. @khtelus, can you please confirm if are you trying to upgrade the provider from 4.x to 5.3.0? And also can you please provide the value of |
Thanks @zli82016 the provider (and my remote state) has already been upgraded unfortunately. Had I known, would have pinned to last v4.... Value of
Thanks! |
The workaround could be to make some other change- such as adding a new label or modifying the existing one to make the update success. |
This does indeed appear to be a workaround @zli82016 - if I add a new "test" tag for example running a |
@zli82016 I think one of the keys points here is - I don't want to change my template. Changing the template will of course in turn force re-creation of the VM instances based on this template. So adding another change (such as another label or a tag for example) to workaround this change is undesirable in my case... |
The PR 9394 made the fix to the resource |
I know this issue is closed but I would appreciate if someone can please help. module.ComputeInstance.google_compute_instance.mon_abc_c will be updated in-place~ resource "google_compute_instance" "mon_abc_c" {
when run terraform apply, it doesn't throw any error and running terraform plan again it shows the same output |
Hello, @saurabh21316 , can you please provide more details how to reproduce this issue? Which provider version does it happen? Does it happen when upgrading the provider from 4.x to 5.x? Thanks. |
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. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Provider version 5.3.0
Affected Resource(s)
google_compute_instance_template
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
With
create_before_destroy
set totrue
as per the configuration a new template should be created on update (in this case toterraform_labels
) and then the deposed object deleted.Actual Behavior
Errors out with
Error: doesn't support update
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: