https://pulumi.com logo
Title
m

mysterious-family-43099

04/11/2023, 10:06 PM
How do I do that? Please help. Conditions should be optional
b

billowy-army-68599

04/11/2023, 10:08 PM
what error are you getting?
m

mysterious-family-43099

04/11/2023, 10:28 PM
Diagnostics: aws🇱🇧ListenerRule (stage-core-alb-i-radar-api-lr): error: 1 error occurred: * Error creating LB Listener Rule: ValidationError: A condition must be specified status code: 400, request id: cddc0d9c-6bc3-44fa-be55-1b733ae3bb60 pulumi😛ulumi:Stack (core-stage-core): error: update failed
trying to make a listener rule that forwards to a target group
for an internal load balancer with no domain
do i need a path rule?
f

fierce-ability-58936

04/11/2023, 11:59 PM
Here's the relevant doc https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#listener-rules
Listener rules
Each listener has a default rule, and you can optionally define additional rules. Each rule consists of a priority, one or more actions, and one or more conditions. You can add or edit rules at any time. For more information, see Edit a rule.
You're trying to add listener rules so they have to have a condition. What you probably want is the default rule which is specified when you create the listener https://www.pulumi.com/registry/packages/aws/api-docs/lb/listener/#forward-action
m

mysterious-family-43099

04/12/2023, 4:20 PM
Thank you
I got it.