ansible-collections / community.aws

Ansible Collection for Community AWS
GNU General Public License v3.0
189 stars 398 forks source link

elb_target_group support for application-based sticky session cookies #513

Open heytrav opened 3 years ago

heytrav commented 3 years ago
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
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
ansibullbot commented 3 years ago

Files identified in the description:

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 commented 3 years ago

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

alinabuzachis commented 3 years ago

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