Open LuqiPan opened 4 years ago
So... I gather from this that CloudFormation does not RESET attributes, only SET them? I actually would consider this a CloudFormation bug, as this flies in the face of desired-state configuration.
I would encourage you to report this as a bug to CloudFormation on their public roadmap.
I guess we could still work around it. Looks like the simplest way to do that would be:
this.setAttribute('load_balancing.cross_zone.enabled', `${!!props.crossZoneEnabled}`);
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
Cfn Roadmap says this feature is coming soon 👀
[Not a Contribution]
NLB does not respect crossZoneEnabled flag fully when it's set to false or it's not set
Reproduction Steps
crossZoneEnabled
totrue
for a NLBcdk deploy
crossZoneEnabled
tofalse
for the same NLBcdk deploy
Error Log
No error produced by CDK
Environment
Other
Add an
else
statement here to account for whencrossZoneEnabled = false
https://github.com/aws/aws-cdk/blob/d6a126508e4bb03f6f9d874c2c6648c3e3661a41/packages/%40aws-cdk/aws-elasticloadbalancingv2/lib/nlb/network-load-balancer.ts#L91This is :bug: Bug Report