Serverless Web Application

Amazon CloudFront → API Gateway → AWS Lambda → Amazon DynamoDB → Amazon S3

Create a serverless web application using S3, CloudFront, API Gateway, Lambda, DynamoDB and Cognito.

This pattern demonstrates how to deploy a serverless web application using SAM. It uses S3, CloudFront, API Gateway, Lambda, DynamoDB and Cognito to build the application. This pattern uses CloudFront to serve both static and dynamic content with two origins to S3 and API Gateway. It also demonstrates how to protect the API using JWT authorizer with Cognito.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/sam-webapp-cognito

Deploy

sam deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Muthu Kumar

Muthu Kumar

AWS Solutions Architect. Serverless advocate and enthusiast.

Follow on LinkedIn