我们可以在新的NLB目标组后面使用ALB,以便我们可以使用REST类型API网关的所有功能,例如Cognito,Xray

发布于 2025-01-29 06:37:46 字数 326 浏览 4 评论 0原文

在我当前存在的环境中,我们在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中的路由

  1. ,如何实现基于路径的后端API路由,并且还有其他方法可以用来配置Cognito,Rest API和LoadBalcners,
  2. 就像我说的那样可以使用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

  1. 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
  2. as I said can I use alb behind new nlb target group

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北城半夏 2025-02-05 06:37:46

实际上,您可以使用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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文