-
Notifications
You must be signed in to change notification settings - Fork 882
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 GPU options to compute-vm module #2689
base: master
Are you sure you want to change the base?
add GPU options to compute-vm module #2689
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
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.
Hey, glad you made it :) Dropped a couple comments, feel free to ping me if you need clarifications
description = "GPU information." | ||
type = object({ | ||
count = number | ||
type = string |
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.
we typically treat strings that only accept a fixed set of values as enums, and enforce the possible values via variable validation; check the DNS module for one of many examples
@@ -333,6 +334,14 @@ resource "google_compute_instance" "default" { | |||
resource_manager_tags = local.tags_combined | |||
} | |||
} | |||
|
|||
dynamic "guest_accelerator" { |
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.
is this also supported for instance templates? if so the same block needs to be added to that resource
Checklist
I applicable, I acknowledge that I have:
terraform fmt
on all modified filestools/tfdoc.py