Serve web static pages stored in S3 bucket from Eks cluster

0

I have an nginx ingress controller inside an Eks cluster. I would like this nginx to serve static web pages stored in S3 which is configured as a website What is the best way to do that?

  • I'm not sure I understand your question. If you've configured the S3 bucket as a website, why do you need nginx to serve it?

demandé il y a 2 ans270 vues
1 réponse
0

If you have created a static website on S3, you don't need a load balancer in front. Instead you can use Cloudfront as a CDN for your static website - https://docs.aws.amazon.com/AmazonS3/latest/userguide/website-hosting-cloudfront-walkthrough.html

If you have single page applications on your static website build using frameworks such as React.js or Vue.js, and you need to make dynamic API calls to your APIs running on EKS, then you can use a Kubernetes Ingress Controller for those APIs. That can be NGINX or you can use the AWS Application Load Balancer for your APIs - https://docs.aws.amazon.com/eks/latest/userguide/alb-ingress.html

profile pictureAWS
EXPERT
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions