Skip to content

Deprecated attribute data.aws_region.current.name #1295

Description

@jonpas

Describe the bug

With AWS v6.0.0 provider, the following attribute is deprecated:

│ Warning: Deprecated attribute
│ 
│   on .terraform/modules/runner-windows/docker_autoscaler_policy.tf line 19, in resource "aws_iam_policy" "instance_docker_autoscaler_policy":
│   19:       aws_region          = data.aws_region.current.name
│ 
│ The attribute "name" is deprecated. Refer to the provider documentation for
│ details.

To Reproduce

Steps to reproduce the behavior:

  1. Use AWS v6.0.0 provider (required since VPC module for AWS v6.00)
  2. tofu validate / tofu plan
  3. Observe deprecation warning

Expected behavior

No warning.

Additional context

/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions