From 570d8108f38af65f18a374ac6af4a452c7d6ceec Mon Sep 17 00:00:00 2001 From: Jeremy Frasier Date: Wed, 2 Oct 2024 10:12:26 -0400 Subject: [PATCH 1/3] Loosen version constraints to allow more future versions This agrees with the advice for Terraform modules given here: https://developer.hashicorp.com/terraform/language/expressions/version-constraints#terraform-core-and-provider-versions Note that these changes should not be made to root modules. --- versions.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/versions.tf b/versions.tf index 9db27b0..8ebd019 100644 --- a/versions.tf +++ b/versions.tf @@ -14,10 +14,10 @@ terraform { # for more information about the S3 bucket refactor. aws = { source = "hashicorp/aws" - version = "~> 4.9" + version = ">= 4.9" } } # We want to hold off on 1.1 or higher until we have tested it. - required_version = "~> 1.0" + required_version = ">= 1.0" } From a451c5fe96926cd98bafc7e19e78ba23f11024dd Mon Sep 17 00:00:00 2001 From: Jeremy Frasier Date: Wed, 2 Oct 2024 10:13:54 -0400 Subject: [PATCH 2/3] Remove comment that no longer applies --- versions.tf | 1 - 1 file changed, 1 deletion(-) diff --git a/versions.tf b/versions.tf index 8ebd019..0989657 100644 --- a/versions.tf +++ b/versions.tf @@ -18,6 +18,5 @@ terraform { } } - # We want to hold off on 1.1 or higher until we have tested it. required_version = ">= 1.0" } From 9d793ebb1f18dcf2ad5f9ef512f9b18ab9953687 Mon Sep 17 00:00:00 2001 From: Jeremy Frasier Date: Wed, 2 Oct 2024 10:19:57 -0400 Subject: [PATCH 3/3] Update Terraform docs in README to match changes from recent commits --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0bd7f2a..7e6dc69 100644 --- a/README.md +++ b/README.md @@ -35,14 +35,14 @@ module "example" { | Name | Version | |------|---------| -| terraform | ~> 1.0 | -| aws | ~> 4.9 | +| terraform | >= 1.0 | +| aws | >= 4.9 | ## Providers ## | Name | Version | |------|---------| -| aws | ~> 4.9 | +| aws | >= 4.9 | ## Modules ##