purple-megabyte-83002
01/25/2023, 10:29 PM@pulumi/awsx@1.0.1
and following https://www.pulumi.com/docs/guides/crosswalk/aws/elb/#manually-configuring-listeners.
It says
const alb = new awsx.lb.NetworkLoadBalancer("web-traffic");
const httpListener = alb.createListener("http-listener", {
port: 80,
protocol: "HTTP",
defaultAction: {
type: "redirect",
redirect: {
protocol: "HTTPS",
port: "443",
statusCode: "HTTP_301",
},
},
});
but locally I get an error
TS2339: Property 'createListener' does not exist on type 'NetworkLoadBalancer'
.
Any idea?melodic-tomato-39005
01/25/2023, 10:36 PM