1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
What I understand from your question is that you have a website with both static and dynamic content.
I would not use the approach with an API gateway + Lambda function calling an ECS task directly. We did something similar in a project and it quickly became a mess, hard to auto-scale and more.
What I would do is create an Application LoadBalancer with the ECS service as target for the ALB. This way you can easy auto-scale the service. Next I would create a CloudFront distribution that serve both the static content and dynamic content, by adding S3 and the ALB as origins. Here you can use a path pattern like /static/
to route requests for static content to the S3 origin.
Contenus pertinents
- demandé il y a 4 mois
- demandé il y a un an
- Réponse acceptéedemandé il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an