diff --git a/contrib/terraform/gcp/main.tf b/contrib/terraform/gcp/main.tf index 3cff429bd..0367d49b6 100644 --- a/contrib/terraform/gcp/main.tf +++ b/contrib/terraform/gcp/main.tf @@ -1,8 +1,16 @@ +terraform { + required_providers { + google = { + source = "hashicorp/google" + version = "~> 3.48" + } + } +} + provider "google" { credentials = file(var.keyfile_location) region = var.region project = var.gcp_project_id - version = "~> 3.48" } module "kubernetes" { diff --git a/contrib/terraform/gcp/modules/kubernetes-cluster/main.tf b/contrib/terraform/gcp/modules/kubernetes-cluster/main.tf index 41e60fe8e..9e0d32637 100644 --- a/contrib/terraform/gcp/modules/kubernetes-cluster/main.tf +++ b/contrib/terraform/gcp/modules/kubernetes-cluster/main.tf @@ -229,7 +229,7 @@ resource "google_compute_instance" "master" { # Since we use google_compute_attached_disk we need to ignore this lifecycle { - ignore_changes = ["attached_disk"] + ignore_changes = [attached_disk] } } @@ -326,7 +326,7 @@ resource "google_compute_instance" "worker" { # Since we use google_compute_attached_disk we need to ignore this lifecycle { - ignore_changes = ["attached_disk"] + ignore_changes = [attached_disk] } } diff --git a/contrib/terraform/gcp/tfvars.json b/contrib/terraform/gcp/tfvars.json index f154d8aa1..06249d6d8 100644 --- a/contrib/terraform/gcp/tfvars.json +++ b/contrib/terraform/gcp/tfvars.json @@ -24,7 +24,7 @@ "zone": "us-central1-a", "additional_disks": {}, "boot_disk": { - "image_name": "ubuntu-os-cloud/ubuntu-1804-bionic-v20201116", + "image_name": "ubuntu-os-cloud/ubuntu-2004-focal-v20220118", "size": 50 } }, @@ -38,7 +38,7 @@ } }, "boot_disk": { - "image_name": "ubuntu-os-cloud/ubuntu-1804-bionic-v20201116", + "image_name": "ubuntu-os-cloud/ubuntu-2004-focal-v20220118", "size": 50 } }, @@ -52,7 +52,7 @@ } }, "boot_disk": { - "image_name": "ubuntu-os-cloud/ubuntu-1804-bionic-v20201116", + "image_name": "ubuntu-os-cloud/ubuntu-2004-focal-v20220118", "size": 50 } }