Skip to content

Require AWS provider v6 and remove the aws_region deprecation warning - #222

Open
John Lonetree (johnlonetree) wants to merge 1 commit into
cloudposse:mainfrom
johnlonetree:fix/aws-region-deprecation
Open

John Lonetree (johnlonetree) wants to merge 1 commit into
cloudposse:mainfrom
johnlonetree:fix/aws-region-deprecation

Conversation

@johnlonetree

@johnlonetree John Lonetree (johnlonetree) commented Oct 16, 2026 •

Copy link
Copy Markdown

what

  • Read the region from aws_region.region instead of the deprecated aws_region.name.
  • Raise the minimum AWS provider version from >= 4.7.0 to >= 6.0.
  • Raise the AWS provider constraint in examples/complete and examples/external-eni to >= 6.0.
  • Update the provider tables in the README.

why

  • AWS provider v6 deprecates aws_region.name, so v6 users see a warning from this module.
  • aws_region.region does not exist before provider v6, so the floor must go up.
  • What breaks: this release no longer supports AWS provider v4 or v5.
  • How to migrate: upgrade to AWS provider v6 first. A plan on an existing deployment (provider 6.69.1) showed no resource changes.

references

Copy link
Copy Markdown
Member

Thanks. The change is correct. We label it major, not minor: this module is at v2, and it raises the minimum AWS provider from >= 4.7.0 to >= 6.0. Our policy: https://docs.cloudposse.com/community/contribute/faq/#what-impact-does-raising-the-minimum-terraform-or-provider-version-have-on-a-module

Nit: please use >= 6.0.0 (three-part form).

Copy link
Copy Markdown
Member

/terratest

@osterman Erik Osterman (Cloud Posse) (osterman) changed the title Fix: Replace Deprecated aws_region .name Attribute with .region Require AWS provider v6 and remove the aws_region deprecation warning Oct 16, 2026
@johnlonetree

Copy link
Copy Markdown
Author

Excellent, thanks for the feedback, I've refactored the version number and it's now following semver convention. I've also changed this in the README, if this is not recommended I can convert this back.

@johnlonetree

Copy link
Copy Markdown
Author

Hey Erik Osterman (Cloud Posse) (@osterman), just a gentle follow-up would there be anything else that would need to be updated, and are there any additional steps I would need to take before review?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

major Breaking changes (or first stable release) triage Needs triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect AWS provider version requirement Dependency on aws provider >5.0

2 participants