Skip to content

Commit aebef80

Browse files
fix: support Terraform AWS Provider v6 (#4646)
Fixes #4625 Requirements for this PR: - support Terraform AWS Provider v6 - continue to support Terraform AWS Provider v5 for as long as practical - avoid the need for another issue to be raised when v7 is eventually released This PR therefore includes the following: - replace current constraints in versions.tf ~> 5.0, ~> 5.27, ~> 5.77 in the module and submodules with >=5.0, >=5.27, >=5.77 - this follows similar practice adopted by many other popular AWS Terraform modules, e.g. the [AWS VPC](https://github.com/terraform-aws-modules/terraform-aws-vpc) - in the examples, upgrade versions.tf to ">=6.0" except for the base, multi-runner and permission-boundary examples where it's left as is, with a comment `ensure backwards compatibility with v5.x` - ran `terraform init --upgrade` to upgrade `terraform.lock.hcl` files in examples
1 parent 0cde7a5 commit aebef80

File tree

28 files changed

+209
-209
lines changed

28 files changed

+209
-209
lines changed

examples/base/.terraform.lock.hcl

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/base/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
aws = {
44
source = "hashicorp/aws"
5-
version = "~> 5.27"
5+
version = ">= 5.27" # ensure backwards compatibility with v5.x
66
}
77
}
88
required_version = ">= 1"

examples/default/.terraform.lock.hcl

Lines changed: 56 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/default/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
aws = {
44
source = "hashicorp/aws"
5-
version = "~> 5.27"
5+
version = ">= 6.0"
66
}
77
local = {
88
source = "hashicorp/local"

examples/ephemeral/.terraform.lock.hcl

Lines changed: 56 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)