我们可以在新的NLB目标组后面使用ALB,以便我们可以使用REST类型API网关的所有功能,例如Cognito,Xray
在我当前存在的环境中,我们在ECS Fargate中有AWS ALB与后端API,现在我想将AWS API Gateway和Cognito与Alb集成。但是根据AWS文档,我们只能使用REST API类型API网关进行Cognito集成,但是根据具有REST API网关类型的AWS文档,我们只能使用ALB,我们只能使用NLB,但我的API是用PATH-配置的 如果我用NLB替换ALB,则基于ALB中的路由
- ,如何实现基于路径的后端API路由,并且还有其他方法可以用来配置Cognito,Rest API和LoadBalcners,
- 就像我说的那样可以使用Alb新的NLB目标组
in my current existed environment we have aws alb with backend APIs in ECS fargate, now I want to integrate aws API gateway and Cognito with alb. but as per AWS docs, we can only use rest API type API gateway for Cognito integration, but again as per AWS docs with rest API gateway type we can't use alb and we can only use nlb but my APIs are configured with path-based routing in alb
- if I replace my alb with nlb how can I achieve my path-based routing for the backend API's and is there any other way that I can use to configure Cognito, rest API and loadbalcners
- as I said can I use alb behind new nlb target group
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上,您可以使用Cognito通过配置a JWT authorizer
This example
You can in fact use Cognito to secure HTTP APIs in API Gateway by configuring a JWT authorizer
This example CloudFormation template will help you get it configured.