From eb8f64b226d874251f3ef60a49cbbe90ed3e512d Mon Sep 17 00:00:00 2001 From: zied-elouaer Date: Thu, 15 Feb 2024 14:11:26 +0100 Subject: [PATCH] feat: update terraform provider version constraint to support 4.x and 5.x --- versions.tf | 2 +- versions.tm.hcl | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/versions.tf b/versions.tf index ee96780..85eb3af 100644 --- a/versions.tf +++ b/versions.tf @@ -5,7 +5,7 @@ terraform { required_providers { google = { source = "hashicorp/google" - version = "~> 4.0" + version = ">= 4, < 6" } } } diff --git a/versions.tm.hcl b/versions.tm.hcl index a4141d3..3a32c4e 100644 --- a/versions.tm.hcl +++ b/versions.tm.hcl @@ -1,10 +1,9 @@ globals { - minimum_terraform_version = "1.0" + minimum_terraform_version = "1.0" - provider = "google" - minimum_provider_version = "4.0" + provider = "google" - provider_version_constraint = "~> ${global.minimum_provider_version}" + provider_version_constraint = ">= 4, < 6" terraform_version_constraint = "~> ${global.minimum_terraform_version}, != 1.1.0, != 1.1.1" # we exclude 1.1.0 and 1.1.1 because of: # https://github.com/hashicorp/terraform/blob/v1.1/CHANGELOG.md#112-december-17-2021