Skip to content

fix: Replace deprecated aws_region data source name attribute #581

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

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

atilsensalduz
Copy link
Contributor

@atilsensalduz atilsensalduz commented Aug 7, 2025

Replaces the deprecated data.aws_region.current.name with data.aws_region.current.region in the IAM Role for Service Accounts EKS module.

Description

  • Updated modules/iam-role-for-service-accounts-eks/main.tf to use the non-deprecated region attribute instead of name

Motivation and Context

The name attribute of the aws_region data source has been deprecated by the AWS provider. This change ensures compatibility with current and future versions of the AWS provider.

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region#name-1

fix: #574

…gion.current.region

The name attribute of the aws_region data source has been deprecated
in favor of the region attribute. This change updates the reference
in the IRSA module to use the current recommended attribute.

Signed-off-by: atilsensalduz <[email protected]>
…gion.current.region

The name attribute of the aws_region data source has been deprecated
in favor of the region attribute. This change updates the reference
in the IRSA module to use the current recommended attribute.

Signed-off-by: atilsensalduz <[email protected]>
…gion.current.region

The name attribute of the aws_region data source has been deprecated
in favor of the region attribute. This change updates the reference
in the IRSA module to use the current recommended attribute.

Signed-off-by: atilsensalduz <[email protected]>
…gion.current.region

The name attribute of the aws_region data source has been deprecated
in favor of the region attribute. This change updates the reference
in the IRSA module to use the current recommended attribute.

Signed-off-by: atilsensalduz <[email protected]>
…gion.current.region

The name attribute of the aws_region data source has been deprecated
in favor of the region attribute. This change updates the reference
in the IRSA module to use the current recommended attribute.

Signed-off-by: atilsensalduz <[email protected]>
…gion.current.region

The name attribute of the aws_region data source has been deprecated
in favor of the region attribute. This change updates the reference
in the IRSA module to use the current recommended attribute.

Signed-off-by: atilsensalduz <[email protected]>
…gion.current.region

The name attribute of the aws_region data source has been deprecated
in favor of the region attribute. This change updates the reference
in the IRSA module to use the current recommended attribute.

Signed-off-by: atilsensalduz <[email protected]>
…gion.current.region

The name attribute of the aws_region data source has been deprecated
in favor of the region attribute. This change updates the reference
in the IRSA module to use the current recommended attribute.

Signed-off-by: atilsensalduz <[email protected]>
…gion.current.region

The name attribute of the aws_region data source has been deprecated
in favor of the region attribute. This change updates the reference
in the IRSA module to use the current recommended attribute.

Signed-off-by: atilsensalduz <[email protected]>
…gion.current.region

The name attribute of the aws_region data source has been deprecated
in favor of the region attribute. This change updates the reference
in the IRSA module to use the current recommended attribute.

Signed-off-by: atilsensalduz <[email protected]>
…gion.current.region

The name attribute of the aws_region data source has been deprecated
in favor of the region attribute. This change updates the reference
in the IRSA module to use the current recommended attribute.

Signed-off-by: atilsensalduz <[email protected]>
…gion.current.region

The name attribute of the aws_region data source has been deprecated
in favor of the region attribute. This change updates the reference
in the IRSA module to use the current recommended attribute.

Signed-off-by: atilsensalduz <[email protected]>
…gion.current.region

The name attribute of the aws_region data source has been deprecated
in favor of the region attribute. This change updates the reference
in the IRSA module to use the current recommended attribute.

Signed-off-by: atilsensalduz <[email protected]>
@bryantbiggs
Copy link
Member

I think theres a few more changes we'll want to make since its a breaking change. its on the list and we'll get to it soon

@atilsensalduz
Copy link
Contributor Author

thank you! @bryantbiggs I'm also interested in contributing to upgrades for the remaining modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecated attribute: The attribute "name" is deprecated
2 participants