-
Notifications
You must be signed in to change notification settings - Fork 663
fix: support Terraform AWS Provider v6 #4646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thx for the PR. I just cracking my head why the versions in the modules are locked down to a major versin. I assume this habbit comes from the fact back in the days a major bump caused several times some troubles. As well that back in the days terraform had no proper locking mechnism. Since users can proper lock their deployment I see no big risk to allow 5+ upawards as long the module does not require 6 only dependencies. In case 7 is breaking something we can always lockdown the mdoule at that time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR broadens Terraform AWS Provider version constraints across the module to allow v6+ while retaining v5 compatibility, and updates example configurations accordingly.
- Swaps all
~> 5.x
constraints in module and submoduleversions.tf
files to>= 5.x
- Updates most example
versions.tf
files to require>= 6.0
, leaving only base, multi-runner, and permissions-boundary examples on~> 5.x
for backwards compatibility - Ran
terraform init --upgrade
on all example lockfiles
Reviewed Changes
Copilot reviewed 24 out of 28 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
versions.tf | Changed AWS provider constraint from ~> 5.77 to >= 5.77 |
modules/**/versions.tf | Replaced all ~> 5.x AWS provider constraints with >= 5.x |
examples/**/versions.tf | Bumped most examples to >= 6.0 , with explicit backward-compat comments on exceptions |
Files not reviewed (4)
- examples/base/.terraform.lock.hcl: Language not supported
- examples/default/.terraform.lock.hcl: Language not supported
- examples/ephemeral/.terraform.lock.hcl: Language not supported
- examples/external-managed-ssm-secrets/.terraform.lock.hcl: Language not supported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@paulschwarzenberger thx! looks all good!
🤖 I have created a release *beep* *boop* --- ## [6.6.0](v6.5.11...v6.6.0) (2025-07-01) ### Features * **runner:** support Ubuntu 24.04 ([#4246](#4246)) ([76456b5](76456b5)) @bdellegrazie ### Bug Fixes * **lambda:** bump @octokit/webhooks from 14.0.2 to 14.1.0 in /lambdas in the octokit group ([#4651](#4651)) ([754ffc8](754ffc8)) * **lambda:** bump the aws group in /lambdas with 6 updates ([#4641](#4641)) ([1955841](1955841)) * **lambda:** bump the aws group in /lambdas with 7 updates ([#4650](#4650)) ([e53710e](e53710e)) * support Terraform AWS Provider v6 ([#4646](#4646)) ([aebef80](aebef80)) @paulschwarzenberger --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: runners-releaser[bot] <194412594+runners-releaser[bot]@users.noreply.github.com> Co-authored-by: github-aws-runners-pr|bot <github-aws-runners-pr[bot]@users.noreply.github.com>
Fixes #4625
Requirements for this PR:
This PR therefore includes the following:
ensure backwards compatibility with v5.x
terraform init --upgrade
to upgradeterraform.lock.hcl
files in examples