From 16933d1b8a4286ed92e267c4308890a9421db611 Mon Sep 17 00:00:00 2001 From: cloud-foundation-bot <60107303+cloud-foundation-bot@users.noreply.github.com> Date: Wed, 13 Apr 2022 17:25:42 -0500 Subject: [PATCH] feat: update TPG version constraints to allow 4.0 (#40) * feat: update TPG version constraints to allow 4.0 * fix: update additional TPG constraints Co-authored-by: Morgante Pell Co-authored-by: Andrew Peabody --- examples/basic/provider.tf | 2 -- examples/basic/versions.tf | 15 ++++++++++++++- test/setup/versions.tf | 20 +++++++++++--------- versions.tf | 2 +- 4 files changed, 26 insertions(+), 13 deletions(-) diff --git a/examples/basic/provider.tf b/examples/basic/provider.tf index 31bb2f5..fd2a567 100644 --- a/examples/basic/provider.tf +++ b/examples/basic/provider.tf @@ -15,11 +15,9 @@ */ provider "google" { - version = ">= 3.53.0" project = var.project_id } provider "google-beta" { - version = ">= 3.53.0" project = var.project_id } diff --git a/examples/basic/versions.tf b/examples/basic/versions.tf index 2970427..85e7e5b 100644 --- a/examples/basic/versions.tf +++ b/examples/basic/versions.tf @@ -15,5 +15,18 @@ */ terraform { - required_version = ">= 0.12" + required_version = ">= 0.13" + required_providers { + google = { + source = "hashicorp/google" + version = ">= 3.53, < 5.0" + } + google-beta = { + source = "hashicorp/google-beta" + version = ">= 3.53, < 5.0" + } + template = { + source = "hashicorp/template" + } + } } diff --git a/test/setup/versions.tf b/test/setup/versions.tf index 8668c05..afd88e7 100644 --- a/test/setup/versions.tf +++ b/test/setup/versions.tf @@ -15,14 +15,16 @@ */ terraform { - required_version = ">= 0.12" -} - -provider "google" { - version = "~> 3.53.0" -} - -provider "google-beta" { - version = "~> 3.53.0" + required_version = ">= 0.13" + required_providers { + google = { + source = "hashicorp/google" + version = ">= 3.53, < 5.0" + } + google-beta = { + source = "hashicorp/google-beta" + version = ">= 3.53, < 5.0" + } + } } diff --git a/versions.tf b/versions.tf index 2ca2144..f8b2f06 100644 --- a/versions.tf +++ b/versions.tf @@ -20,7 +20,7 @@ terraform { google = { source = "hashicorp/google" - version = "~> 3.53" + version = ">= 3.53, < 5.0" } }