Skip to content

feat!: Upgrade AWS provider and min required Terraform version to 6.0 and 1.10 respectively #335

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

iodeslykos
Copy link
Contributor

@iodeslykos iodeslykos commented Jun 23, 2025

Description

  • Updated .name -> .region
  • Removed examples/complete-legacy
  • Added support for region in all resources

Closes #333

Breaking Changes

It is fully compatible with v6, but will cause issues with anything less. Justifies a major version jump of the module.

How Has This Been Tested?

  • 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

@antonbabenko antonbabenko changed the title fix(aws_region): Name becomes region due to deprecation feat!: Upgrade AWS provider and min required Terraform version to 6.0 and 1.10 respectively Jun 25, 2025
@antonbabenko antonbabenko merged commit c37f4c3 into terraform-aws-modules:master Jun 25, 2025
20 checks passed
antonbabenko pushed a commit that referenced this pull request Jun 25, 2025
## [5.0.0](v4.11.0...v5.0.0) (2025-06-25)

### ⚠ BREAKING CHANGES

* Upgrade AWS provider and min required Terraform version to 6.0 and 1.10 respectively (#335)

### Features

* Upgrade AWS provider and min required Terraform version to 6.0 and 1.10 respectively ([#335](#335)) ([c37f4c3](c37f4c3))
@antonbabenko
Copy link
Member

This PR is included in version 5.0.0 🎉

@nightspotlight
Copy link

nightspotlight commented Jun 25, 2025

I think examples/complete should be updated to demo the new region input. Move region = local.region from provider settings to every module call.

Outputs should have been updated as well:

Resource aws_s3_bucket

bucket_region has been added and should be used instead of region, which is now used for Enhanced Region Support.

output "s3_bucket_region" {
  description = "The AWS region this bucket resides in."
-  value       = try(aws_s3_bucket.this[0].region, "")
+  value       = try(aws_s3_bucket.this[0].bucket_region, "")
}

@antonbabenko
Copy link
Member

@nightspotlight region is optional. If the value is identical to the one specified by the provider, it can be omitted. Let's leave it as is in the examples.

The output has been fixed in #343

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants