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?

asked 2 years ago263 views
1 Answer
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions