EOF in aws_lb_listener when ALB is configured with the new "fixed response" option (via AWS console) #5357
Labels
bug
Addresses a defect in current functionality.
crash
Results from or addresses a Terraform crash or kernel panic.
service/elbv2
Issues and PRs that pertain to the elbv2 service.
Milestone
Community Note
Terraform Version
0.11.7
aws = 1.29,1.27,1.28, and 1.22
Affected Resource(s)
aws_lb_listener_rule
Terraform Configuration Files
Debug Output
https://gist.github.com/tam116/31d807604ca39d28f8651a96bec82d82
Panic Output
https://gist.github.com/tam116/31d807604ca39d28f8651a96bec82d82
Expected Behavior
Terraform should apply the config. It should ignore the "fixed response" listener rule configured on the ALB when that rule is not managed by terraform. If the rule is managed it should handle setting the rule back to a "forward" (or any other supported listener rule type)
Actual Behavior
Terraform plan fails with EOF errors.
Steps to Reproduce
Manually configure the default ALB rule to be a "fixed response" listener rule via web console of aws cli.
Use terraform to manage a different "forward" rule on the same ALB.
Important Factoids
I did not test against other rule types like Authenticate or Redirect nor setting a non-default rule to fixed response,
References
Details about the new ALB listener rule options: https://aws.amazon.com/about-aws/whats-new/2018/07/elastic-load-balancing-announces-support-for-redirects-and-fixed-responses-for-application-load-balancer/
The text was updated successfully, but these errors were encountered: