Replies: 1 comment 1 reply
-
Hi @gokulanv thanks for reaching out. Here is the CDK documentation for You can find more info there for your use case, for example: declare const listener: elbv2.ApplicationListener;
declare const asg: autoscaling.AutoScalingGroup;
listener.addTargets('Example.Com Fleet', {
priority: 10,
conditions: [
elbv2.ListenerCondition.hostHeaders(['example.com']),
elbv2.ListenerCondition.pathPatterns(['/ok', '/path']),
],
port: 8080,
targets: [asg]
}); Also:
I hope that helps. I'm going to convert this issue into a discussion since it involves a general question. Others from the community are welcome to share feedback here as well. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the issue
I have service A with two pipeline prod stages: 1-box serves 10% traffic and full-prod that serves 90% traffic.
Now, I want to add Service B to the same cluster and implement path based routing.
Can you point me to CDK examples of how I can do this? I dont see enough documentation to support both path-based and weight based service routing from ALB. At the bare minimum, would like to know step by step guidelines with constructs to use.
Links
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/listener-update-rules.html
Beta Was this translation helpful? Give feedback.
All reactions