-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(aws-elasticloadbalancing): add crossZone property #2787
Conversation
Ability to enable cross-zone load balancing for a Classic Load Balancer closes aws#2786
* | ||
* @default - false. | ||
*/ | ||
readonly crossZone?: boolean; |
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.
Does true
make more sense as a default value here? I would feel better with that as a default value, and it seems the ELB team agrees:
According to: https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html
With the AWS Management Console, the option to enable cross-zone load balancing is selected by default.
Given that we kind of see the CDK as the "AWS console but without clicking", it makes sense to me that the recommended defaults would be the same between console and CDK.
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.
@rix0rrr good suggestion! I was just merely following the CloudFormation documentation.
I've updated my PR based on your recommendation. Let me know what you think.
Update from upstream
enable cross-zone load balancing by default to comply with AWS Console behaviour
Ability to enable cross-zone load balancing for a Classic Load Balancer
closes #2786