Unable to access 'load_balancer_arn' property from 'aws_lb_listener' data query #4315
Labels
bug
Addresses a defect in current functionality.
regression
Pertains to a degraded workflow resulting from an upstream patch or internal enhancement.
service/elbv2
Issues and PRs that pertain to the elbv2 service.
Milestone
Terraform Version
Terraform: v0.10.8
AWS Provider: v1.9-1.15
Affected Resource(s)
Terraform Configuration Files
The terraform below was able to use a listener arn as input to get details about the associated load balancer. The worked until AWS provider v1.9 and is still an issue with the latest version at this time(v1.15). The result from v1.9 and up is an error saying 'load_balancer_arn' is not an attribute of the listener(see below).
Expected Behavior
I would expect the query to function as it previously did and return the load balancer arn. Similar to the AWS CLI command:
aws elbv2 describe-listeners --listener-arns <arn>
Actual Behavior
Steps to Reproduce
Have a simple terraform that queries for a listener and attempt to access the 'load_balancer_arn' attribute.
Important Factoids
This worked from v1.2 through v1.8. After a little digging this appears to be associated with the change to add another method of querying for a listener via load balancer name and port. Associated issues below.
References
These issues appear to be related but I'm not certain.
The text was updated successfully, but these errors were encountered: