https://pulumi.com logo
#getting-started
Title
# getting-started
b

bright-scientist-61638

05/04/2021, 1:41 PM
Hello - I'm very new to Pulumi, and am playing around with creating an AWS ECS cluster. I've got stuck with trying to configure the application load balancer. I want to define a rule that checks the request host header, so only a specific domain name routes to a given fargate service. The listener action args wants a
targetGroupArn
but I can't see what to pass in there. I'm using AWS crosswalk - is that limited in terms of what I can configure? Can anyone point me to docs/tutorials on more complex load balancer config please?
b

billowy-army-68599

05/04/2021, 11:22 PM
can you share the code you currently have?
b

bright-scientist-61638

05/05/2021, 8:31 AM
I managed to solve it. I had this:
Copy code
const targetGroup = lb.createTargetGroup("seq-target-group", { port: 80 });
but didn't notice that I can get the ARN via:
Copy code
targetGroup.targetGroup.arn
I guess the object returned by createTargetGroup is a kind of wrapper?
3 Views