Skip to content

elb_target_group: support ip_address_type #1441

Open
@SipSeb

Description

@SipSeb

Summary

AWS added the support for IPv6 backends recently. Currently, I cannot manage those target groups automatically. When trying, I get an error.

botocore.exceptions.ClientError: An error occurred (ValidationError) when calling the RegisterTargets operation: The IP address 'affe:affe:affe::affe' is not a valid IPv4 address

When querying a manually created target group, I get an ip_address_type property.

            {
                "deregistration_delay_connection_termination_enabled": "false",
                "deregistration_delay_timeout_seconds": "300",
                "health_check_enabled": true,
                "health_check_interval_seconds": 30,
                "health_check_port": "traffic-port",
                "health_check_protocol": "TCP",
                "health_check_timeout_seconds": 10,
                "healthy_threshold_count": 3,
                "ip_address_type": "ipv6",
                "load_balancer_arns": [],
                "port": 80,
                "preserve_client_ip_enabled": "false",
                "protocol": "TCP",
                "proxy_protocol_v2_enabled": "false",
                "stickiness_enabled": "false",
                "stickiness_type": "source_ip",
                "tags": {},
                "target_group_arn": "arn:aws:elasticloadbalancing:eu-central-1:1234567890:targetgroup/tg-v6/715c73821da67a3f",
                "target_group_name": "tg-v6",
                "target_type": "ip",
                "unhealthy_threshold_count": 3,
                "vpc_id": "vpc-foobar"
            }

Issue Type

Feature Idea

Component Name

elb_target_group

Additional Information

Code of Conduct

  • I agree to follow the Ansible Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis issue/PR relates to a feature requestmodulemodulepluginsplugin (any type)waiting_on_contributorNeeds help. Feel free to engage to get things unblocked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions