-
Notifications
You must be signed in to change notification settings - Fork 140
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
Support Spot provisioning in VM instance module #283
Merged
tpdownes
merged 3 commits into
GoogleCloudPlatform:develop
from
tpdownes:feat_vm_instance_spot
May 10, 2022
Merged
Support Spot provisioning in VM instance module #283
tpdownes
merged 3 commits into
GoogleCloudPlatform:develop
from
tpdownes:feat_vm_instance_spot
May 10, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Triggered validation test with Omnia that uses vm-instance module. |
nick-stroud
reviewed
May 10, 2022
I am force pushing a change with this local diff relative to the branch on my fork (i.e. what you just reviewed): diff --git a/modules/compute/vm-instance/main.tf b/modules/compute/vm-instance/main.tf
index 8cccacc..a789957 100644
--- a/modules/compute/vm-instance/main.tf
+++ b/modules/compute/vm-instance/main.tf
@@ -89,7 +89,7 @@ resource "google_compute_instance" "compute_vm" {
boot_disk {
source = google_compute_disk.boot_disk[count.index].self_link
device_name = google_compute_disk.boot_disk[count.index].name
- auto_delete = false
+ auto_delete = true
}
network_interface {
diff --git a/modules/compute/vm-instance/variables.tf b/modules/compute/vm-instance/variables.tf
index d749d5e..084496e 100644
--- a/modules/compute/vm-instance/variables.tf
+++ b/modules/compute/vm-instance/variables.tf
@@ -184,4 +184,4 @@ variable "preemptible" {
description = "Provision VMs using discounted Spot pricing, allowing for preemption"
type = bool
default = false
-}
\ No newline at end of file
+} |
6 tasks
nick-stroud
approved these changes
May 10, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
var.spot
is setdisable boot disk deletion by Compute Engine in favor of allowing Terraform to destroy the disk; otherwise terraform destroy is in a race condition with GCE and fails with some high %Submission Checklist
pre-commit install
make tests
change?
guides?