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
This issue was originally opened by @advanderveer as hashicorp/terraform#6678. It was migrated here as part of the provider split. The original body of the issue is below.
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)
google_compute_instance
google_compute_disk
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:
Update here- the changes to add boot/scratch disk have been submitted, and disk has been deprecated. The next release will include #329, which adds a state migration so people can upgrade Terraform without changing their configurations. After that, there are a few more steps as detailed in #122.
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
ghost
locked and limited conversation to collaborators
Mar 30, 2020
This issue was originally opened by @advanderveer as hashicorp/terraform#6678. It was migrated here as part of the provider split. The original body of the issue is below.
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 hashicorp/terraform#5241 is related
The text was updated successfully, but these errors were encountered: