sparse-intern-71089
02/20/2019, 9:10 PMfull-dress-10026
02/20/2019, 9:12 PMlet httpBackendSg = new awsx.ec2.SecurityGroup("http-backend-lb-sg", {
vpc: cluster.vpc,
ingress: [{
protocol: "tcp",
fromPort: 8880,
toPort: 8880,
cidrBlocks: ["0.0.0.0/0"]
}],
egress: [{
protocol: "-1",
fromPort: 0,
toPort: 0,
cidrBlocks: ["0.0.0.0/0"]
}]
});
const httpBackendLb = new awsx.elasticloadbalancingv2.ApplicationLoadBalancer("http-backend-lb4", {
vpc: vpc,
external: true,
securityGroups: [httpBackendSg],
});
const httpBackendTg = httpBackendLb.createTargetGroup("http-backend-tg3", {
port: 8880,
healthCheck: {
protocol: "HTTP",
path: "/_healthcheck",
healthyThreshold: 2,
unhealthyThreshold: 4,
matcher: "200"
}
});
const httpBackendListener = httpBackendTg.createListener("http-backend-listener2", {
port: 8880
});
full-dress-10026
02/20/2019, 9:17 PMfull-dress-10026
02/20/2019, 9:18 PMbusy-umbrella-36067
02/20/2019, 10:06 PMhttpBackendSg.id
busy-umbrella-36067
02/20/2019, 10:06 PMfull-dress-10026
02/20/2019, 10:08 PMlemon-spoon-91807
02/20/2019, 10:08 PMlemon-spoon-91807
02/20/2019, 10:08 PMlemon-spoon-91807
02/20/2019, 10:08 PMswitch (port) {
case 80: case 8000: case 8008: case 8080: return <ApplicationProtocol>"HTTP";
case 443: case 8443: return <ApplicationProtocol>"HTTPS";
default: throw new Error("Invalid port: " + JSON.stringify(port));
}
lemon-spoon-91807
02/20/2019, 10:09 PMlemon-spoon-91807
02/20/2019, 10:09 PMfull-dress-10026
02/20/2019, 10:11 PMfull-dress-10026
02/20/2019, 10:12 PMlemon-spoon-91807
02/20/2019, 10:12 PMlemon-spoon-91807
02/20/2019, 10:12 PMlemon-spoon-91807
02/20/2019, 10:13 PMfull-dress-10026
02/20/2019, 10:13 PMlemon-spoon-91807
02/20/2019, 10:17 PM