-
Notifications
You must be signed in to change notification settings - Fork 1.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
Add support for disk interface in google_compute_instance #121
Add support for disk interface in google_compute_instance #121
Conversation
This allows specifying the disk interface as documented at https://cloud.google.com/compute/docs/reference/latest/instances#resource-representations It addresses hashicorp#24
@@ -131,6 +131,11 @@ the type is "local-ssd", in which case scratch must be true). | |||
* `scratch` - (Optional) Whether the disk is a scratch disk as opposed to a | |||
persistent disk (required for local-ssd). | |||
|
|||
* `interface` - (Optional) Specifies the disk interface to use for attaching this disk, | |||
which is either SCSI or NVME. The default is SCSI. Persistent disks must always use | |||
SCSI and the request will fail if you attempt to attach a persistent disk in any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be preferable to enforce the persistent disk restriction in the terraform code?
This builds off the effort in hashicorp/terraform#13026 which appears to have been abandoned 😕 |
Hi there! Thanks for opening this. I'm wondering if this conflicts with #123 , do you have any thoughts? |
Appears so yes, I'm fine with closing this PR then. Glad to see it implemented in some form or another 🎉 |
Thanks @jbarbuto! Hope I didn't waste too much of your time :( |
@danawillow No worries, it was a good opportunity to learn Terraform internals which may come in handy later :) |
Stackdriver notification channel
Stackdriver notification channel
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! |
This allows specifying the disk interface as documented at
https://cloud.google.com/compute/docs/reference/latest/instances#resource-representations
It addresses #24