Skip to content

Conversation

dsantanu
Copy link

@dsantanu dsantanu commented Oct 13, 2025

What does this PR do?

With the latest v6 AWS provider, name argument in aws_region data-source has been deprecated and replaced by region. At the moment it throws in the following warning:

Warning: Deprecated attribute

on .terraform/modules/eks_addons_infrastructure_clusters_euc1/main.tf line 21, in locals:
21: region = data.aws_region.current.name

The attribute "name" is deprecated. Refer to the provider documentation for
details.

(and 4 more similar warnings elsewhere)

This PR replaces the line region = data.aws_region.current.name -> region = data.aws_region.current.region

Motivation

More

  • Yes, I have tested the PR using my local account setup (Provide any test evidence report under Additional Notes)
  • Yes, I ran pre-commit run -a with this PR

For Moderators

  • E2E Test successfully complete before merge?

Additional Notes

…n as name is deprecated since v6.x of AWS provider
@dsantanu dsantanu requested a review from a team as a code owner October 13, 2025 16:12
@dsantanu dsantanu changed the title Updated data.aws_region.current.name to data.aws_region.current.regio… fix: Updated data.aws_region.current.name to data.aws_region.current.regio… Oct 13, 2025
@dsantanu dsantanu changed the title fix: Updated data.aws_region.current.name to data.aws_region.current.regio… fix: Updated deprecated data.aws_region.current.name Oct 13, 2025
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.

Deprecated attribute - data.aws_region.current.name when using v6 aws provider

1 participant