Skip to content

Conversation

@todd-dsm
Copy link

What does this PR do?

Updates the deprecated data.aws_region.current.name with data.aws_region.current.region in main.tf.

Problem

The AWS provider deprecated the name attribute on the aws_region data source. This causes a warning on every plan/apply:

Warning: Deprecated attribute

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

Solution

Change line 21 in main.tf from region = data.aws_region.current.name -> region = data.aws_region.current.region

References

🛑 Please open an issue first to discuss any significant work and flesh out details/direction - we would hate for your time to be wasted.
Consult the CONTRIBUTING guide for submitting pull-requests.

Motivation

just a slight personal annoyance of low-hanging fruit.

More

I have tested on my own project using the latest Terraform provider:

terraform {
  required_version = "~> 1.14"
...
}

Have not tested anything outside of that.

The test results are that the warning message is no longer displayed.

  • 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

@todd-dsm todd-dsm requested a review from a team as a code owner November 29, 2025 18:45
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.

1 participant