full-dress-10026
02/20/2019, 9:10 PM8880
would be invalid? It'd be much more helpful if the stack trace pointed to something in my code.
error: Running program '/home/kenny/compute_software/infrastructure/pulumi-src' failed with an unhandled exception:
error: Error: Invalid port: 8880
at pulumi.all.apply (/home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/elasticloadbalancingv2/application.ts:142:28)
at Output.<anonymous> (/home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/awsx/node_modules/@pulumi/pulumi/resource.js:277:47)
at next (native)
at /home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/awsx/node_modules/@pulumi/pulumi/resource.js:20:71
at __awaiter (/home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/awsx/node_modules/@pulumi/pulumi/resource.js:16:12)
at promise.then (/home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/awsx/node_modules/@pulumi/pulumi/resource.js:264:62)
error: Running program '/home/kenny/compute_software/infrastructure/pulumi-src' failed with an unhandled exception:
error: Error: Invalid port: 8880
at pulumi.all.apply (/home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/elasticloadbalancingv2/application.ts:142:28)
at Output.<anonymous> (/home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/awsx/node_modules/@pulumi/pulumi/resource.js:277:47)
at next (native)
at /home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/awsx/node_modules/@pulumi/pulumi/resource.js:20:71
at __awaiter (/home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/awsx/node_modules/@pulumi/pulumi/resource.js:16:12)
at promise.then (/home/kenny/compute_software/infrastructure/pulumi-src/node_modules/@pulumi/awsx/node_modules/@pulumi/pulumi/resource.js:264:62)
error: an unhandled error occurred: Program exited with non-zero exit code: 1
let 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
});
busy-umbrella-36067
02/20/2019, 10:06 PMhttpBackendSg.id
full-dress-10026
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));
}
full-dress-10026
02/20/2019, 10:11 PMlemon-spoon-91807
02/20/2019, 10:12 PMfull-dress-10026
02/20/2019, 10:13 PMlemon-spoon-91807
02/20/2019, 10:17 PM