CloudFront -> S3 for static or API Gateway with multiple dynamic backends in ECS

旧街凉风 提交于 2021-02-07 18:42:54

问题


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?


回答1:


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/


来源:https://stackoverflow.com/questions/60867824/cloudfront-s3-for-static-or-api-gateway-with-multiple-dynamic-backends-in-ecs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!