diff --git a/examples/bastion_group/versions.tf b/examples/bastion_group/versions.tf index 3e73a738..d1218c9c 100644 --- a/examples/bastion_group/versions.tf +++ b/examples/bastion_group/versions.tf @@ -14,13 +14,15 @@ * limitations under the License. */ terraform { - required_version = ">=0.13" + required_version = ">= 0.13" required_providers { google = { - source = "hashicorp/google" + source = "hashicorp/google" + version = "~> 4.0" } google-beta = { - source = "hashicorp/google-beta" + source = "hashicorp/google-beta" + version = "~> 4.0" } random = { source = "hashicorp/random" diff --git a/examples/iap_tunneling/main.tf b/examples/iap_tunneling/main.tf index 7812ded8..631599e8 100644 --- a/examples/iap_tunneling/main.tf +++ b/examples/iap_tunneling/main.tf @@ -38,7 +38,7 @@ resource "google_service_account" "vm_sa" { # A testing VM to allow OS Login + IAP tunneling. module "instance_template" { source = "terraform-google-modules/vm/google//modules/instance_template" - version = "1.1.0" + version = "~> 7.3" project_id = var.project machine_type = "n1-standard-1" diff --git a/examples/iap_tunneling/versions.tf b/examples/iap_tunneling/versions.tf index 1ee2a52f..e4ca6d1b 100644 --- a/examples/iap_tunneling/versions.tf +++ b/examples/iap_tunneling/versions.tf @@ -14,10 +14,11 @@ * limitations under the License. */ terraform { - required_version = ">=0.13" + required_version = ">= 0.13" required_providers { google = { - source = "hashicorp/google" + source = "hashicorp/google" + version = "~> 4.0" } } } diff --git a/examples/simple_example/versions.tf b/examples/simple_example/versions.tf index 3e73a738..d1218c9c 100644 --- a/examples/simple_example/versions.tf +++ b/examples/simple_example/versions.tf @@ -14,13 +14,15 @@ * limitations under the License. */ terraform { - required_version = ">=0.13" + required_version = ">= 0.13" required_providers { google = { - source = "hashicorp/google" + source = "hashicorp/google" + version = "~> 4.0" } google-beta = { - source = "hashicorp/google-beta" + source = "hashicorp/google-beta" + version = "~> 4.0" } random = { source = "hashicorp/random" diff --git a/examples/two_service_example/versions.tf b/examples/two_service_example/versions.tf index 3e73a738..d1218c9c 100644 --- a/examples/two_service_example/versions.tf +++ b/examples/two_service_example/versions.tf @@ -14,13 +14,15 @@ * limitations under the License. */ terraform { - required_version = ">=0.13" + required_version = ">= 0.13" required_providers { google = { - source = "hashicorp/google" + source = "hashicorp/google" + version = "~> 4.0" } google-beta = { - source = "hashicorp/google-beta" + source = "hashicorp/google-beta" + version = "~> 4.0" } random = { source = "hashicorp/random" diff --git a/main.tf b/main.tf index 089e7c67..eee959ff 100644 --- a/main.tf +++ b/main.tf @@ -44,7 +44,7 @@ resource "google_service_account" "bastion_host" { module "instance_template" { source = "terraform-google-modules/vm/google//modules/instance_template" - version = "~> 6.0" + version = "~> 7.3" name_prefix = var.name_prefix project_id = var.project diff --git a/modules/bastion-group/main.tf b/modules/bastion-group/main.tf index 578ae77d..0d5e00cf 100644 --- a/modules/bastion-group/main.tf +++ b/modules/bastion-group/main.tf @@ -41,7 +41,7 @@ module "iap_bastion" { module "mig" { source = "terraform-google-modules/vm/google//modules/mig" - version = "~> 6.0" + version = "~> 7.3" project_id = var.project region = var.region diff --git a/modules/bastion-group/versions.tf b/modules/bastion-group/versions.tf index 82fbbabf..ac3d07c6 100644 --- a/modules/bastion-group/versions.tf +++ b/modules/bastion-group/versions.tf @@ -17,10 +17,12 @@ terraform { required_version = ">=0.13" required_providers { google = { - source = "hashicorp/google" + source = "hashicorp/google" + version = ">= 3.53, < 5.0" } google-beta = { - source = "hashicorp/google-beta" + source = "hashicorp/google-beta" + version = ">= 3.53, < 5.0" } random = { source = "hashicorp/random" diff --git a/modules/iap-tunneling/versions.tf b/modules/iap-tunneling/versions.tf index 29812dae..4aebb1fb 100644 --- a/modules/iap-tunneling/versions.tf +++ b/modules/iap-tunneling/versions.tf @@ -17,7 +17,8 @@ terraform { required_version = ">=0.13" required_providers { google = { - source = "hashicorp/google" + source = "hashicorp/google" + version = ">= 3.53, < 5.0" } } provider_meta "google" { diff --git a/versions.tf b/versions.tf index e56cc88b..e5786ab3 100644 --- a/versions.tf +++ b/versions.tf @@ -17,7 +17,8 @@ terraform { required_version = ">=0.13" required_providers { google = { - source = "hashicorp/google" + source = "hashicorp/google" + version = ">= 3.53, < 5.0" } random = { source = "hashicorp/random"