-
Notifications
You must be signed in to change notification settings - Fork 48
feat(module/gwlb): Add variable to manage stickiness type for target group #317
Conversation
Hi, Thank for the PR, this was really fast and did not see that while was pushing my suggested alternative. However, I have few doubts/comments regarding the suggested code.
Thanks! |
Hi @willoak84 , thank you for quick feedback . Regarding your questions:
According to Terraform documentation
So to summarise - below code works, because Terraform is using provider in version 4.67 and both values 2 - you are right, it's not necessary to check it in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 +1
🎉 This PR is included in version 0.4.2 🎉 The release is available on Terraform Registry and GitHub release
|
Description
By default the Gateway Load Balancer uses 5-tuple to maintain flow stickiness to a specific target appliance. In order to modify the stickiness type and customize it to 3-tuple or 2-tuple, it was introduced new variable
stickiness_type
for modulegwlb
.Motivation and Context
Detailed description can be found in #316 .
By purpose I haven't used approach described in #316 with
dynamic
, because in below scenario it doesn't work as expected:stickiness_type = "source_ip_dest_ip_proto"
stickiness_type
and default (null
) is usedfor_each
indynamic
is empty, sostickiness
configuration isn't provided and old settings remains in AWS for target groupIn approach proposed in PR it's defined
enabled
forstickiness
, which isfalse
for 5-tuple andtrue
for:so in every scenario
stickiness
configuration is provided, even if we are using default behaviour with 5-tuple.How Has This Been Tested?
Code was tested by deploying
combined_design
with GWLB and then by changing:and
for
gwlb
module.Types of changes
Checklist