-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/google: Add support for attaching/detaching a disk to/from an instance #12398
Conversation
@danawillow Awesome, I will test it ASAP, but it might take me a couple days to get to. Thank you so much. 👍 |
I tested this against my instances/disks, and it worked, allowing me to de/reattach disks. This makes me happy. @danawillow if there's any particular scenario you'd like me to test, let me know. Otherwise LGTM. |
Great, thanks @jevonearth! @paddyforan, this is ready for review whenever you are. |
Before I get into the code of this, just a design thought: is it worth maybe making this similar to the AWS volume attachment resource? |
Hmm, maybe. The big difference between the two APIs is that the Would it be worth it to get on a hangout for 10 minutes tomorrow and talk about this? |
Hi @paddycarver @danawillow , did you two figure out what to do with this? I'm stuck again today with terraform v0.9.5 wanting to nuke an instance because some disk changes. :/ |
Hey @jevonearth, sorry for the delay and the lack of communication. We came up with a solution we like a lot better- I wrote a design doc around it and plan to implement it at some point soon, but haven't gotten around to it yet. |
Great to hear @danawillow , looking forward to it. :) |
I'm going to close this PR, as it's now deprecated in favour of the new design, to avoid confusion. :) |
@paddycarver Is there a PR, Issue, or link to a design doc so the curious can follow along? :) |
I think @danawillow is putting the finishing touches on it at the moment, but the tentative outline is that we'll move to an attached_disk resource, and eventually deprecate the disk property on instances. I think tracking #6678 is probably the best bet for keeping track, as any new PRs or issues will almost certainly be linked back to it. I can't promise timelines or anything, but this is one of the overarching design problems that are at the forefronts of our minds right now. |
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. |
Fixes #6678.
This currently has a few limitations, but I think it's good enough to handle the most common uses. The limitations are:
cc @evandbrown in case you're interested since you had looked into this at one point
also @jevonearth