Which provider/resource is causing issues?

Hello,
I’m working on terraform code using three main providers (aws, kubernetes, helm), a module i’ve written and a module from aws, along with multiple instances of the aws provider.

I want to apply changes but now I’m getting this error:

Plan: 19 to add, 0 to change, 0 to destroy.
│
│ Error: Missing Configuration for Required Attribute
│
│ Must set a configuration value for the name attribute as the provider has marked it as required.
│
│ Refer to the provider documentation or contact the provider developers for additional information about configurable attributes that are
│ required.
│

How can I get Terraform to tell me which provider is complaining, and ideally what resource is it complaining about?

Btw, I’m running the latest terraform version:

$ terraform version
Terraform v1.11.4
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v5.97.0
+ provider registry.terraform.io/hashicorp/cloudinit v2.3.7
+ provider registry.terraform.io/hashicorp/helm v2.17.0
+ provider registry.terraform.io/hashicorp/kubernetes v2.36.0
+ provider registry.terraform.io/hashicorp/null v3.2.4
+ provider registry.terraform.io/hashicorp/time v0.13.1
+ provider registry.terraform.io/hashicorp/tls v4.1.0

I have a bunch of resources and can’t really inspect them all one by one.

I had previously tried setting the TF_LOG environment variable to DEBUG but was overwhelmed with too much output and didn’t find what was wrong with my code.

Of course the exact moment I decide to give up and ask for help the two neurons in my brain decide to finally make contact and come up with a working approach.

I set TF_LOG=ERROR and then terraform plan and the issue came up very easy:

2025-05-05T15:03:45.704+0200 [ERROR] provider.terraform-provider-aws_v5.97.0_x5: Response contains error diagnostic:
  diagnostic_detail=
  | Must set a configuration value for the name attribute as the provider has marked it as required.
  |
  | Refer to the provider documentation or contact the provider developers for additional information about configurable attributes that are required.
   diagnostic_severity=ERROR diagnostic_attribute="AttributeName(\"name\")" diagnostic_summary="Missing Configuration for Required Attribute" tf_proto_version=5.8 tf_rpc=ValidateEphemeralResourceConfig @caller=github.com/hashicorp/terraform-plugin-go@v0.26.0/tfprotov5/internal/diag/diagnostics.go:58 tf_ephemeral_resource_type=aws_eks_cluster_auth tf_provider_addr=registry.terraform.io/hashicorp/aws tf_req_id=cf2fac01-ec6c-6388-9205-b0ee3e194a79 @module=sdk.proto timestamp="2025-05-05T15:03:45.704+0200"
2025-05-05T15:03:45.705+0200 [ERROR] vertex "module.eks-XXXXX.ephemeral.aws_eks_cluster_auth.eks_access_token" error: Missing Configuration for Required Attribute
2025-05-05T15:03:45.705+0200 [ERROR] vertex "module.eks-XXXXXX.ephemeral.aws_eks_cluster_auth.eks_access_token (expand)" error: Missing Configuration for Required Attribute

So the complaining provider is aws (used within a specific module) and the resource is aws_eks_cluster_auth.