S3 Hosting + Api Gateway

前端 未结 2 1278
情话喂你
情话喂你 2021-02-15 22:34

I\'m trying to host a static site in S3 with ability to handle some dynamic content using Lambda/Api Gateway. Can\'t seem to be able to do that. I want URLs to look like this:

2条回答
  •  感情败类
    2021-02-15 22:58

    You can configure this by putting a CloudFront distribution in front of both the API Gateway API and the S3 bucket for static content. This would also allow you to take advantage of CloudFront's edge caching.

提交回复
热议问题