From b8b9718707487bbf3c9e484e84192bfc79789ea4 Mon Sep 17 00:00:00 2001 From: Victor Rosas Date: Tue, 22 Apr 2025 14:45:02 -0400 Subject: [PATCH] Update README.md Updated to latest syntax to work on 2025 required_providers{ google = { source = "hashicorp/google" version = "3.55.0" updated to version = "3.83.0" } } module "vpc" updated to module "network" to support the new package name. --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index ac78f9e..bc8b721 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ terraform { required_providers { google = { source = "hashicorp/google" - version = "3.55.0" + version = "3.83.0" } } } @@ -73,7 +73,7 @@ resource "google_compute_instance" "tf-instance-1" { boot_disk { initialize_params { - image = "debian-cloud/debian-10" + image = "debian-cloud/debian-11" } } @@ -94,7 +94,7 @@ resource "google_compute_instance" "tf-instance-2" { boot_disk { initialize_params { - image = "debian-cloud/debian-10" + image = "debian-cloud/debian-11" } } @@ -153,7 +153,7 @@ terraform { required_providers { google = { source = "hashicorp/google" - version = "3.55.0" + version = "3.83.0" } } } @@ -173,7 +173,7 @@ resource "google_compute_instance" "tf-instance-1" { boot_disk { initialize_params { - image = "debian-cloud/debian-10" + image = "debian-cloud/debian-11" } } @@ -190,7 +190,7 @@ resource "google_compute_instance" "tf-instance-2" { boot_disk { initialize_params { - image = "debian-cloud/debian-10" + image = "debian-cloud/debian-11" } } @@ -207,7 +207,7 @@ resource "google_compute_instance" "" { boot_disk { initialize_params { - image = "debian-cloud/debian-10" + image = "debian-cloud/debian-11" } } @@ -241,7 +241,7 @@ resource "google_compute_instance" "" { boot_disk { initialize_params { - image = "debian-cloud/debian-10" + image = "debian-cloud/debian-11" } } @@ -257,7 +257,7 @@ terraform apply
**TASK 5: Use a module from the Registry**
Copy and paste the following to the end of _main.tf_ file, fill in _Version Number_ and _Network Name_ instructed in the challenge: ``` -module "vpc" { +module "network" { source = "terraform-google-modules/network/google" version = "~> " @@ -297,7 +297,7 @@ resource "google_compute_instance" "tf-instance-1" { boot_disk { initialize_params { - image = "debian-cloud/debian-10" + image = "debian-cloud/debian-11" } } @@ -315,7 +315,7 @@ resource "google_compute_instance" "tf-instance-2" { boot_disk { initialize_params { - image = "debian-cloud/debian-10" + image = "debian-cloud/debian-11" } }