https://pulumi.com logo
#general
Title
# general
f

fresh-summer-65887

11/06/2019, 11:28 PM
Am using
awsx.lb.ApplicationLoadBalancer
- how do I get the dnsName and zone id so I can setup a route53 alias? Been following https://www.pulumi.com/docs/guides/crosswalk/aws/elb/ however
ApplicationLoadBalancer
seems to be missing properties that are found on `LoadBalancer`(https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/aws/alb/#LoadBalancer-dnsName) . Sample code in thread->
Copy code
const lb = new awsx.lb.ApplicationLoadBalancer("mylb",
                {
                    vpc: myVpc
                });
    
            loadBalancer.createListener("my-listener",
                { 
                    port: 443,
                    protocol: "HTTPS",
                    certificateArn: certArn,
                    external: true,
                    loadBalancer: loadBalancer,
                    vpc,
                });
                
            new aws.route53.Record(
                "lb-alias",
                {
                    name: "mydomain",
                    type: RecordTypes.A,
                    aliases: [{
                        evaluateTargetHealth: true,
                        name: lb.dnsName, //??
                        zoneId: lb.zone.Id, //??
                    }],
                    zoneId,
                });
name: lb.loadBalancer.dnsName
🙂