是否可以在不同的Elastic Beanstalk应用程序之间进行基于路径的路由? [英] Is it possible to do path based routing across different Elastic Beanstalk applications?

查看:88
本文介绍了是否可以在不同的Elastic Beanstalk应用程序之间进行基于路径的路由?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有多个在AWS上运行的Elastic beantalk应用程序.

I have multiple elastic beanstalk applications running on AWS.

我想将某些路径路由到一个应用程序,并将另一路径路由到另一个应用程序.

I would want to route certain paths to 1 application and another path to another application.

例如,任何对example.com/app1的请求都将由App1处理,而对example.com/app2的任何请求均将由App2处理.

For example, any request going to example.com/app1 will be handled by the App1 whereas any request going to example.com/app2 will be handled by App2.

我尝试创建目标组,然后转到应用程序负载平衡器并向其添加侦听器规则.但是,路由似乎一直不起作用,因为它不断超时.

I tried creating a target group and then going to the application load balancer and add listener rules to them. However, the routing does not seem to work as it constantly times out.

如何配置负载均衡器以将路径路由到不同的Elastic beantalk应用程序?

How do I configure my load balancer to route my paths to the different elastic beanstalk apps?

推荐答案

您可以使用Load Balancer前面的AWS API网关将请求路由到配置了AWS BeanStalk的相应LB.

You can use AWS API gateway in-front of the Load Balancer to route the requests to your respective LB configured with AWS BeanStalk.

建议的体系结构文档在这里共享.

Proposed architecture document is shared here.

这篇关于是否可以在不同的Elastic Beanstalk应用程序之间进行基于路径的路由?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆