sparse-intern-71089
04/01/2020, 1:55 PMminiature-arm-21874
04/01/2020, 2:26 PM// Open egress traffic from our targets to your load balancer (for health checks).
const sg = new awsx.ec2.SecurityGroup('web-sg', {
vpc,
egress: [
{ protocol: '-1', fromPort: 0, toPort: 0, cidrBlocks: ['0.0.0.0/0'] },
],
});
export const alb = new awsx.lb.ApplicationLoadBalancer('web-services-lb', {
vpc,
securityGroups: [sg],
});