-
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
ElasticLoadBalancingV2: add dualstack NetworkLoadBalancer creation #27538
Comments
I just noticed this aws-cdk/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-load-balancer.ts Line 28 in 48d7726
And this https://docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-ip-address-type.html Looks like NLB supports dualstack as well. We can add this property for NLB: aws-cdk/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/nlb/network-load-balancer.ts Lines 15 to 22 in 48d7726
|
Adds support for dual-stack NetworkLoadBalancer via the [`ipAddressType`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-ipaddresstype) property. Example: ``` const lb = new elbv2.NetworkLoadBalancer(this, 'LB', { vpc, internetFacing: true ipAddressType: elbv2.IpAddressType.DUAL_STACK, }); ``` Also, added validation to enforce that UDP or TCP_UDP listeners cannot be added to a dualstack NLB. Closes #27538. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Adds support for dual-stack NetworkLoadBalancer via the [`ipAddressType`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-loadbalancer.html#cfn-elasticloadbalancingv2-loadbalancer-ipaddresstype) property. Example: ``` const lb = new elbv2.NetworkLoadBalancer(this, 'LB', { vpc, internetFacing: true ipAddressType: elbv2.IpAddressType.DUAL_STACK, }); ``` Also, added validation to enforce that UDP or TCP_UDP listeners cannot be added to a dualstack NLB. Closes aws#27538. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Describe the feature
Currently it is not possible to create a dualstack Network Load Balancer with the higher level construct, it is only possible with the lower level CfnLoadBalancer resource. Dualstack Network Load Balancers were introduced ~3 years ago.
Use Case
It is not possible to create a dualstack Network Load Balancer with the higher level construct. It is only possible with the lower level CfnLoadBalancer resource. There are limitations to the CfnLoadBalancer resource; it doesn't have an ARN property, it is not a valid RecordTarget.
Proposed Solution
add ipAddressType property to NetworkLoadBalancer. This is implemented for Application Load Balancers so can reference its implementation.
Other Information
No response
Acknowledgements
CDK version used
2.99.1
Environment details (OS name and version, etc.)
Amazon Linux 2 aarch64 5.10 Kernel
The text was updated successfully, but these errors were encountered: