Skip to content

Instantly share code, notes, and snippets.

@kritro
Last active May 20, 2021 08:09
Show Gist options
  • Select an option

  • Save kritro/6e518d07c11ae75cb25165861377d29e to your computer and use it in GitHub Desktop.

Select an option

Save kritro/6e518d07c11ae75cb25165861377d29e to your computer and use it in GitHub Desktop.
//Network load balancer
const nlb = new elbv2.NetworkLoadBalancer(this, 'NLB', {
vpc,
internetFacing: true,
vpcSubnets: publicSubnet,
loadBalancerName: "app-mysql-nlb-public",
crossZoneEnabled: false
});
cdk.Tags.of(nlb).add("Name", servername+"-network-load-balancer");
cdk.Tags.of(nlb).add("Application", application);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment