Open ValeriiVozniuk opened 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
any update on this?
+1
+1
+1
Same here, we are using this in conjunction with EKS and have two clusters (hence two load balancers) and get the same issue:
➜ infrastructure git:(test) ✗ terraform -version
Terraform v1.6.5
on darwin_arm64
+ provider registry.terraform.io/gavinbunney/kubectl v1.14.0
+ provider registry.terraform.io/hashicorp/aws v5.29.0
+ provider registry.terraform.io/hashicorp/helm v2.12.1
+ provider registry.terraform.io/hashicorp/kubernetes v2.24.0
+ provider registry.terraform.io/hashicorp/random v3.6.0
+ provider registry.terraform.io/hashicorp/tls v4.0.5
same here we are using aws loadblancer module.ec2_module.aws_instance.ec2[0]: Refreshing state... [id=xxxxxxxxxx]
╷
│ Error: Search returned 303 results, please revise so only one is returned
│
│ with module.createNewTg.data.aws_lb_target_group.main-tg,
│ on ../../../module/tg_module_v1/main.tf line 1, in data "aws_lb_target_group" "main-tg":
│ 1: data "aws_lb_target_group" "main-tg"{
│
╵
+1
would be great if we have another data source as aws_lb_target_groups
Terraform Core Version
1.3.9
AWS Provider Version
4.50
Affected Resource(s)
aws_lb_target_group
Expected Behavior
Provider is able to find existing aws_lb_target_group resources without errors
Actual Behavior
Provider is not able to find aws_lb_target_group resources, see the error below
Relevant Error/Panic Output Snippet
Terraform Configuration Files
-
Steps to Reproduce
Run terraform plan with plugin version 4.50+
Debug Output
good.txt fail.txt
Panic Output
No response
Important Factoids
The issue appeared in provider version 4.50, suspected cause is https://github.com/hashicorp/terraform-provider-aws/pull/27161 Attached traces from working plan command with plugin 4.49 and non-working plan for 4.50
References
No response
Would you like to implement a fix?
None