Hi all I'm new to Pulumi, so I apologize in advanc...
# aws
r
Hi all I'm new to Pulumi, so I apologize in advance if this is a basic question... I'm trying to launch an ECS cluster on AWS of a dockerized express.js app. I can't seem to figure out how to appropriately set the load balancer to default to HTTPS traffic. Here is a snippet from my index.ts file.
const alb = new awsx.elasticloadbalancingv2.ApplicationLoadBalancer(
``net-lb-${envName}`, { external: true, securityGroups: cluster.securityGroups });` `const web = alb.createListener(
web-${envName}
, {`
port: 80,
external: true,
defaultAction: {
type: "redirect",
redirect: {
protocol: "HTTPS",
port: "443",
statusCode: "HTTP_301",
},
},
});
But, when trying to "pulumi up" I'm getting the following error :
Error: [Listener] was not connected to a [defaultAction] that can provide [portMapping]s
I couldn't find anything in the Pulumi docs: https://www.pulumi.com/docs/reference/pkg/python/pulumi_aws/elasticloadbalancingv2/ Any help would be appreciated