data aws_instance create list based on resource count query returned no results #10502
Labels
service/ec2
Issues and PRs that pertain to the ec2 service.
service/elb
Issues and PRs that pertain to the elb service.
waiting-response
Maintainers are waiting on response from community or contributor.
Community Note
Terraform Version
Terraform v0.12.10
Affected Resource(s)
*provider.aws v2.32.0
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
I need to place a list of EC2 instances for the load balancer. Instead of creating instance by instance, I'm using count for the creation. For getting the list of instances created, I'm using data aws_instance, for getting the list of EC2 that were created.
Actual Behavior
At the moment of doing plan/apply I'm getting the error that the query return no results
Steps to Reproduce
Create multiple EC2 instances with the tags above, then execute a data provider to pull back the info.
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: