From 138a740bd075f4ea8ca29e4e2a840f38f5d51dda Mon Sep 17 00:00:00 2001 From: Lyly Louanghaksaphone Date: Mon, 3 Jan 2022 17:47:57 -0500 Subject: [PATCH] feat(google): upgrade provider version to support 0.14 --- main.tf | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/main.tf b/main.tf index 4844f80..ddcabd4 100644 --- a/main.tf +++ b/main.tf @@ -14,8 +14,14 @@ * limitations under the License. */ -provider "google-beta" { - version = ">= 2.0.0" +terraform { + required_version = "~> 0.14.10" + required_providers { + google-beta = { + source = "hashicorp/google-beta" + version = "~> 3.64.0" + } + } } ############### @@ -125,7 +131,7 @@ resource "google_compute_instance_template" "default" { # scheduling must have automatic_restart be false when preemptible is true. scheduling { preemptible = var.preemptible - automatic_restart = ! var.preemptible + automatic_restart = !var.preemptible on_host_maintenance = "MIGRATE" }