CloudFront->用于ECS中具有多个动态后端的静态或API网关的S3 [英] CloudFront -> S3 for static or API Gateway with multiple dynamic backends in ECS

查看:118
本文介绍了CloudFront->用于ECS中具有多个动态后端的静态或API网关的S3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为站点实施反向代理/重定向服务,该站点将托管在AWS S3(静态JS资产)+ CloudFront和作为不同任务运行的多个后端中,AWS ECS可从 domain.com/api/session_number获得重定向或反向代理服务应分析输入参数并重定向到相应的后端.

到目前为止,我已经找到了

解决方案

您真正要放置的是Traefik负载平衡器,而不是nginx:

  1. 如何在ECS上设置Traefik?
  2. https://netbears.com/blog/traefik-cluster-ecs/

I need to implement a reverse proxy/redirect service for site which will be hosted in AWS S3 (static JS assets) + CloudFront and multiple backends running as different tasks AWS ECS available at domain.com/api/session_number Redirect or reverse proxy service should analyze input parameter and redirect to corresponding backend.

So far I've found ECS-nginx-proxy but it looks more like the tool for dev/stage environments. How such service can be implemented for production using AWS services like ALB + API Gateway, Lambda@Edge?

解决方案

Instead of nginx, what you really want to put there is the Traefik Load Balancer:

  1. How should I setup Traefik on ECS?
  2. https://netbears.com/blog/traefik-cluster-ecs/

这篇关于CloudFront->用于ECS中具有多个动态后端的静态或API网关的S3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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