Skip to content

Conversation

Saremox
Copy link
Contributor

@Saremox Saremox commented Jun 18, 2025

Description

Adds a version constraint to the aws provider, since 6.0 introduced changes that currently breaks v20.37.0.
This is just a workaround to make it work

Motivation and Context

Currently it not possible to use this Module, as terraform automatically downloads the newly released 6.0.0 aws provider

fixes #3383

Breaking Changes

This should not introduce breaking changes

How Has This Been Tested?

As this a trivial change I have skipped those steps. I've tested my branch on one of our Testing Cluster setups and it didn't change any resources.

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@Saremox Saremox changed the title Add aws version constraint for 6.0.0 fix: Add aws version constraint for 6.0.0 Jun 18, 2025
@bryantbiggs bryantbiggs changed the title fix: Add aws version constraint for 6.0.0 fix: Restrict AWS provider max version due to v6 provider breaking changes Jun 18, 2025
@bryantbiggs
Copy link
Member

note: even if folks do not upgrade to the latest module version to pick up this change, you can pin (and should pin) your required_providers version in your configuration to achieve the same result

@bryantbiggs bryantbiggs merged commit 681a868 into terraform-aws-modules:master Jun 18, 2025
23 checks passed
antonbabenko pushed a commit that referenced this pull request Jun 18, 2025
## [20.37.1](v20.37.0...v20.37.1) (2025-06-18)

### Bug Fixes

* Restrict AWS provider max version due to v6 provider breaking changes ([#3384](#3384)) ([681a868](681a868))
@antonbabenko
Copy link
Member

This PR is included in version 20.37.1 🎉

@zachvida
Copy link

zachvida commented Jun 23, 2025

tl;dr in your root module add something like this.

#versions.tf

terraform {
  required_providers {
    aws = {
      source = "hashicorp/aws"
      version = "~> 5.0"
    }
  }
}

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AWS Provider 6.0.0 breaks self-managed-node-group
4 participants