I am trying to attach security group to the Network Load Balancer through CDK. I do not see an option in the constructor properties. I know it’s a new feature that NLB supporting security group. Please suggest.
Here is the CDK documentation I was referring to
https://aws.amazon.com/about-aws/whats-new/2023/08/network-load-balancer-supports-security-groups/
Looking if someone tried to associate security group in NLB through CDK
Update:
This was added in CDK 2.112.0,
NetworkLoadBalancernow has asecurityGroupspropOriginal answer:
This has not been released in CDK yet as of 2.93.0 - here is the relevant issue that contains a temporary workaround using an escape hatch: