Skip to content

Deprecated attribute warning after upgrading the hashicorp/aws provider to 6.0.0Β #338

@eisraeli

Description

@eisraeli

Description

A deprecation warning is issued by Terraform upon executing terraform validate after upgrading the hashicorp/aws provider to version 6.0.0

β”‚ Warning: Deprecated attribute
β”‚ 
β”‚   on .terraform/modules/s3_bucket/main.tf line 623, in data "aws_iam_policy_document" "elb_log_delivery":
β”‚  623:     for_each = { for k, v in local.elb_service_accounts : k => v if k == data.aws_region.current.name }
β”‚ 
β”‚ The attribute "name" is deprecated. Refer to the provider documentation for details.
β”‚ 
β”‚ (and 2 more similar warnings elsewhere)
β•΅
  • Not using workspaces.
  • Cleared local cache.

Versions

  • Module version: 4.11.0
  • Terraform version: 1.12.2
  • Provider version(s): hashicorp/aws 6.0.0

Expected behavior

No warnings when running when running terraform validate

Actual behavior

The warning as pasted above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions