aws-samples / amazon-cloudfront-secure-static-site

Create a secure static website with CloudFront for your registered domain.
Apache License 2.0
385 stars 140 forks source link

How to integrate this with an API Gateway? #49

Closed ConnorKirk closed 2 years ago

ConnorKirk commented 2 years ago

A common extension to this template might be to add an API Gateway that can receive HTTP requests.

This CloudFormation template demonstrates one method. It uses the AWS::Serverless:Function resource to define a Lambda Function that receives requests from an API Gateway. The AWS::Serverless::Function resource implicitly creates the API Gateway.

AWS::Serverless::Function Documentation