Skip to content

fix: update AWS provider to v6+ and correct region reference in templatefile#191

Merged
gberenice merged 2 commits intocloudposse:mainfrom
chrheg:fix/region-data-call-depreciation-warning
Dec 17, 2025
Merged

fix: update AWS provider to v6+ and correct region reference in templatefile#191
gberenice merged 2 commits intocloudposse:mainfrom
chrheg:fix/region-data-call-depreciation-warning

Conversation

@chrheg
Copy link
Contributor

@chrheg chrheg commented Jul 8, 2025

what

  • Updated the Terraform configuration to support AWS provider version >= 6.0.0
  • Fixed incorrect attribute reference in the templatefile function for region resolution

why

  • Ensures compatibility with newer versions of the AWS provider (v6.0.0+) to leverage updated features and improvements
  • Addresses a breaking change introduced in terraform-provider-aws v6.0.0, where data.aws_region.current.name is showing depreciation warning
  • Corrects the template input to use data.aws_region.current.region, aligning with the expected attribute

references

@chrheg chrheg requested review from a team as code owners July 8, 2025 08:08
@chrheg chrheg requested review from joe-niland and nitrocode July 8, 2025 08:08
@mergify mergify bot added the triage Needs triage label Jul 8, 2025
@gberenice
Copy link
Contributor

/terratest

@gberenice gberenice merged commit 701ee1e into cloudposse:main Dec 17, 2025
15 checks passed
@mergify mergify bot removed the triage Needs triage label Dec 17, 2025
@github-actions
Copy link

These changes were released in v1.8.0.

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.

2 participants