-
Notifications
You must be signed in to change notification settings - Fork 32
fix: replace deprecated aws_region.name with aws_region.region data sources #73
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
base: main
Are you sure you want to change the base?
fix: replace deprecated aws_region.name with aws_region.region data sources #73
Conversation
Hello - thanks for this PR. Just thinking out loud here... if we accepted this PR, would we also need to bump the required provider version to 6.0+? |
Yes please. This warning for the deprecated value comes from the latest version |
Hmm, i think that would be harder to do. Ill have to look later to see if |
Thank you. From what i see, its currently pointing to the latest version hence i was getting this warnings. But please double check |
hmm.. looks like the 4.53.0 https://registry.terraform.io/providers/hashicorp/aws/4.53.0/docs/data-sources/region thanks again for opening this :) ill get back to you shortly |
ok so i think we're fine to merge this and then just do a minor version bump. If anyone wants to stay on the old version they can version pin. Before we merge can you please:
|
@siamkholo2 , any updates on #73 (comment)? |
I have updated the required version to 6.0 as suggested also ran terraform-doc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrew-glenn if you can please do a minor bump
This PR removes usage of the deprecated name attribute from the aws_region data source.
It replaces ${data.aws_region.current.name} with ${data.aws_region.current.region} to avoid warnings and maintain compatibility with future Terraform AWS provider versions.