S3 Hosting + Api Gateway

前端 未结 2 786
天命终不由人
天命终不由人 2021-02-15 22:38

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 23:10

    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.

提交回复
热议问题