Hey all. Quick question on aws crosswalk load bal...
# aws
g
Hey all. Quick question on aws crosswalk load balancers and target groups. When creating an ApplicationLoadBalancer and a subsequent
ApplicationLoadBalancerTargetGroup
, it looks like I don't have the ability to set the
loadBalancingAlgorithmType
even though is only a setting available to
ApplicationLoadBalancerTargetGroups
. Example Code:
Copy code
const loadBalancer = new awsx.lb.ApplicationLoadBalancer(`${resourcePrefix}ALB`, { securityGroups: [ sg ] }, { replaceOnChanges: ['*'] });

    const targetGroup = loadBalancer.createTargetGroup(
        `${resourcePrefix}Group`, { 
            targetType: "instance", 
            healthCheck: { ... },
            // Would expect loadBalancingAlgorithmType to be set here
            //     but it is not a property of type: ApplicationTargetGroupArgs
        }, { replaceOnChanges: ['*']  });
It's creating each target group as a
round_robin
which isn't ideal for what I'm building. Any work arounds besides going into the console and editing it?
Package versions:
Copy code
"@pulumi/awsx @ 0.30.0"
"@pulumi/aws @ 5.3.0"