community.aws icon indicating copy to clipboard operation
community.aws copied to clipboard

elb_target_group support for application-based sticky session cookies

Open heytrav opened this issue 3 years ago • 3 comments

SUMMARY

AWS Application load balancers now appear to support application-based cookies in addition to the standard load balancer generated cookie.

https://docs.aws.amazon.com/elasticloadbalancing/latest/application/sticky-sessions.html

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

elb_target_group

ADDITIONAL INFORMATION

The application based cookie has a duration attribute just as the load balancer generated cookie does. It is also required to assign a name to the cookie that is specific to the target group.

- name: Modify the target group with a custom health check
  community.aws.elb_target_group:
    name: mytargetgroup
    protocol: http
    port: 80
    vpc_id: vpc-01234567
    health_check_protocol: http
    health_check_path: /health_check
    health_check_port: 80
    successful_response_codes: 200
    health_check_interval: 15
    health_check_timeout: 3
    healthy_threshold_count: 4
    unhealthy_threshold_count: 3
    stickiness_enabled: yes
    stickiness_lb_cookie_duration: 86400
    stickiness_application_cookie_name: my_application_cookie
    state: present

heytrav avatar Mar 29 '21 19:03 heytrav

Files identified in the description:

  • [plugins/modules/elb_target_group.py](https://github.com/['ansible-collections/amazon.aws', 'ansible-collections/community.aws', 'ansible-collections/community.vmware']/blob/main/plugins/modules/elb_target_group.py)

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot avatar Mar 29 '21 19:03 ansibullbot

cc @jillr @s-hertel @tremble @wimnat click here for bot help

ansibullbot avatar Mar 29 '21 19:03 ansibullbot

Hi @heytrav, thank you for this feature idea. Would you be willing to raise a PR? Thanks.

alinabuzachis avatar Apr 16 '21 19:04 alinabuzachis