Skip to content

Deprecated attribute: The attribute "name" is deprecated #574

@todd-dsm

Description

@todd-dsm

Description

Entirely ignorable.

After aws provider bump to v6.x, I get this warning message:

Warning: Deprecated attribute

  on .terraform/modules/eks.vpc_cni_irsa/modules/iam-role-for-service-accounts-eks/main.tf line 9, in locals:
   9:   region              = data.aws_region.current.name

The attribute "name" is deprecated. Refer to the provider documentation for details.

When running a terraform plan on this config:

module "vpc_cni_irsa" {
  source  = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks"
  version = "~> 5.58.0"

  role_name_prefix = "${var.project}-vpc-cni-"

  attach_vpc_cni_policy = true
  vpc_cni_enable_ipv4   = true
  vpc_cni_enable_ipv6   = var.enable_ipv6

  oidc_providers = {
    main = {
      provider_arn               = aws_eks_cluster.eks_auto.identity[0].oidc[0].issuer
      namespace_service_accounts = ["kube-system:aws-node"]
    }
  }

  tags = var.tags
}
  • I have searched the open/closed issues and my issue is not listed.
  • I have rm -rf .terraform/ and re-initialized

Versions

% terraform version 
Terraform v1.11.4
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v6.0.0
+ provider registry.terraform.io/hashicorp/kubernetes v2.37.1
+ provider registry.terraform.io/hashicorp/null v3.2.4
+ provider registry.terraform.io/hashicorp/random v3.7.2

Steps to reproduce the behavior:

tf init, plan, apply => error

Expected behavior

Only success messages are displayed.

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