full-dress-10026
12/12/2018, 5:19 PMlet fibLB = infra.x.ecs.LoadBalancer.fromPortInfo("fib-fargate-lb", {
cluster: cluster,
port: 80,
targetPort: 8080,
external: true,
protocol: "http"
});
let fibTG = new aws.elasticloadbalancingv2.TargetGroup("fib-tg", {
protocol: "HTTP",
port: 8080,
vpcId: network.vpcId,
healthCheck: {
healthyThreshold: 2,
unhealthyThreshold: 10,
timeout: 5,
interval: 300
}
});
let fibLB2 = infra.x.ecs.LoadBalancer.fromTargetGroupInfo("fib-fargate-lb", {
targetGroupArn: fibTG.arn,
hostPort: 80,
containerPort: 8080
});
But targetGroupArn
cannot be a Output<string>
. Using fromTargetGroupInfo
doesn't let you specify a cluster. Is that ok?fromPortInfo
.lemon-spoon-91807
12/12/2018, 6:29 PMfull-dress-10026
12/12/2018, 6:30 PMlemon-spoon-91807
12/12/2018, 6:33 PMfull-dress-10026
12/12/2018, 6:38 PM