Skip to content

Warning: Deprecated attribute data.aws_region.current.name #251

@nikola197

Description

@nikola197

Describe the Bug

Terraform AWS provider deprecated name attribute in favor of region in version 6.0.0

Terraform plan show deprecation warning:

╷
│ Warning: Deprecated attribute
│ 
│   on main.tf line 9, in locals:
│    9:     data.aws_region.default.name == "us-east-1" ? "compute-1" : format("%s.compute", data.aws_region.default.name)
│ 
│ The attribute "name" is deprecated. Refer to the provider documentation for
│ details.
│ 
│ (and 3 more similar warnings elsewhere)
╵

Expected Behavior

Not showing the warning

Steps to Reproduce

terraform plan with aws provider >= 6.0.0

Screenshots

No response

Environment

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions