Stickiness support for source_ip broke valid configurations for NLB #15603
Labels
bug
Addresses a defect in current functionality.
partition/aws-us-gov
Pertains to the aws-us-gov partition.
service/elbv2
Issues and PRs that pertain to the elbv2 service.
Community Note
Terraform CLI and Terraform AWS Provider Version
0.13.1
3.10
Affected Resource(s)
Terraform Configuration Files
Before this was merged, I used blocks like
because due to a previous bug in order to disable stickiness you had to set
lb_cookie
as your type, even though it wasn't appropriate for the NLB (was the only available one), because the config otherwise complained thattype
was not set, even though the only desired effect was to disable stickiness.These configurations worked fine up to 3.10 where they fail with
InvalidConfigurationRequest: Stickiness type 'lb_cookie' is not supported for target groups with the TCP protocol
, even though enabled is (still) set tofalse
. I think it shouldn't complain about the stickiness type when enabled is set tofalse
.Expected Behavior
When stickiness block is configured as
enabled = false
it doesn't complain about the type of stickiness.Actual Behavior
Terraform fails with
Stickiness type 'lb_cookie' is not supported for target groups with the TCP protocol
Steps to Reproduce
Add this block
to a NLB target group.
References
The text was updated successfully, but these errors were encountered: