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?

質問済み 2年前270ビュー
1回答
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
エキスパート
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ