-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
'google_compute_instance' adding 'google_compute_disk' forces new resource #6678
Comments
/CC @evandbrown, @lwander, @erjohnso |
Looks like it's probably because the schema has
It'll also need some add/remove/update logic for management of the disks in I'll have a look at implementing this if I can find some time over the next few weeks as it's an issue we've run into and makes ongoing management of instances rather restrictive. |
Any progress on this issue? Are |
I'll punch this out at Hashiconf this week. |
Hi there @evandbrown, sorry to ankle bite you here, any progress on this? It's blocking me from using GCP, and I really want to use GCP. :) |
@jevonearth I'll jump on this tomorrow. Apologies that this slipped off my radar. |
Hi @evandbrown, I'll be happy to help with any sort of testing that might be useful to you on this. :) |
I would be glad to help too, @evandbrown . |
I bumped into this - very happy to test any fixes. |
@evandbrown I hate to bother you on this, can you give an estimate on when this could be fixed? I'm at a point where I'm going to have to abandon google cloud platform for a new project just because this issue. |
I know @evandbrown is working on some pretty high-priority stuff for us right now, but I should be able to take a look at this next week. I'll assign this to myself and keep you all updated. |
Thank you @danawillow, my offer to help with testing stands :) |
Just a quick update- I'm actively working on this and hope to have something ready to share by the end of the week (but no guarantees) |
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. |
Hey, i've encountered unexpected behaviour while updating a google_compute_instance resource by adding a new disk {}.
Terraform Version
Terraform v0.6.16
Affected Resource(s)
Terraform Configuration Files
Consider starting out with the following configuration:
When using the gce interface I would now be able to add the disk 'test-disk' to the instance 'remove-me' without recreating it (or even rebooting). I would expect terraform to behave the same when changing the resource configuration to the following:
Debug Output
https://gist.github.com/advanderveer/fc9e8ef73f1f0b0b8578fedf9140307e
Panic Output
No panic is produced
Expected Behavior
I would expect the the 'google_compute_instance' not to be recreated
Actual Behavior
It get destroyed, i.e terraform plan shows multiple "forces new resource":
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan
terraform apply
Important Factoids
Not that i'm aware of
References
I couldn't find any maybe #5241 is related
The text was updated successfully, but these errors were encountered: