Skip to content

aws-elb: Disabling cross zone load balancing is not respected in Java CDK #29866

@codypenta

Description

@codypenta

Describe the bug

        ApplicationLoadBalancer loadBalancer = ApplicationLoadBalancer.Builder.create(this, "ApplicationLoadBalancer")
                .vpc(vpc)
                .crossZoneEnabled(false) // BUG: This is not respected and cross zone is enabled
                .desyncMitigationMode(DesyncMitigationMode.DEFENSIVE)
                .internetFacing(true)
                .build();

Expected Behavior

I expect cross zone to be disabled or a warning why it was enabled

Current Behavior

Cross zone load balancer is not respected

Reproduction Steps

See source

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.134.0

Framework Version

2

Node.js Version

v21.7.1

OS

MacOS

Language

Java

Language Version

Java (17)

Other information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions