terraform-aws-gitlab-runner icon indicating copy to clipboard operation
terraform-aws-gitlab-runner copied to clipboard

Deprecated attribute `data.aws_region.current.name`

Open jonpas opened this issue 4 months ago • 0 comments
trafficstars

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

/

jonpas avatar Jun 24 '25 12:06 jonpas