Skip to content

Conversation

@yuemanwai
Copy link

Resolves a deprecation warning by changing data.aws_region.current.name to data.aws_region.current.region in main.tf.

Refer to the official documentation for details:
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region

Resolves a deprecation warning by changing `data.aws_region.current.name` to `data.aws_region.current.region` in `main.tf`.
@yuemanwai yuemanwai requested a review from a team as a code owner July 24, 2025 09:49
@askulkarni2 askulkarni2 changed the title Fix: Update deprecated AWS region attribute fix: Update deprecated AWS region attribute Jul 24, 2025
@lorengordon
Copy link

This change actually requires aws provider v6. That makes it backwards incompatible, and will need a corresponding major version bump...

@yuemanwai
Copy link
Author

I appreciate you explaining that. I didn't realize my change would cause a breaking change and require a major version bump.

I'll close the PR for now. Thanks for your time and for the valuable feedback.

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