-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: aws_lb_listener - header modification on existing listeners is not applied #40986
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Saw this as well. It will update only on new creation and recreate. |
Have the same issue |
Reacted with a 👍 - having the same issue here. |
Also encountering this. Current workaround is to taint the listener and then recreate. but this is not desirable. |
Having the same issue here. Any update on this? |
Same issue here. |
PR hashicorp#40736 added support for many new listener attributes, however the resource update code was only written to call ModifyListenerAttributes if the tcp_idle_timeout_seconds attribute had been updated. This would result in the terraform plan saying that it would update the attributes, but the change would not actually get applied. This change fixes that by making it so that ModifyListenerAttributes is called whenever any of the attributes has been changed. Fixes issue hashicorp#40986.
PR hashicorp#40736 added support for many new listener attributes, however the resource update code was only written to call ModifyListenerAttributes if the tcp_idle_timeout_seconds attribute had been updated. This would result in the terraform plan saying that it would update the attributes, but the change would not actually get applied. This change fixes that by making it so that ModifyListenerAttributes is called whenever any of the attributes has been changed. Fixes issue hashicorp#40986.
I have raised #41299 to address this. |
Terraform Core Version
1.10.4
AWS Provider Version
5.84.0
Affected Resource(s)
When I try to turn off
Server header
inaws_lb_lisnener
usingrouting_http_response_server_enabled
parameter, correct plan is created, but no changes to the listener are done.Expected Behavior
ALB listener will be modified and
Server header
value will be changed toOff
Actual Behavior
Server header
attribute is not modified. Next plan will still show changes, and still it will be untouched.Relevant Error/Panic Output Snippet
Terraform Configuration Files
And there is this warning in logs:
apply log
Steps to Reproduce
routing_http_response_server_enabled
parameter used. Please note, that in my example in this step I used version 5.76.0hashicorp/aws
to version 5.84.0routing_http_response_server_enabled = false
I also created respository with example available here
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: