https://pulumi.com logo
Title
p

purple-megabyte-83002

01/25/2023, 10:29 PM
Hello i'm very disappointed. Running
@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?
m

melodic-tomato-39005

01/25/2023, 10:36 PM
Looks like the listener is now specified inline when creating the balancer: https://www.pulumi.com/registry/packages/awsx/api-docs/lb/networkloadbalancer/#listener_python Looks like someone already filed an issue. We’ll look into it.