Amazon API Gateway HTTP API with Amazon Cognito JWT and AWS Lambda integration

Amazon API Gateway HTTP API → AWS Lambda

This pattern creates an Amazon Gateway API (v2) and two Lambda functions protected by JwtAuthorizer and Cognito for user management.

This pattern creates an Amazon API Gateway HTTP API with JWTAuthorizer and Cognito as user management. It integrates with one unprotected Lambda and one protected Lambda..

< 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/apigw-http-api-cognito-lambda-cdk

Deploy

Deploy the stack: <code>cdk deploy</code>.


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk delete.

Created by:

Philippe Wanner

Philippe Wanner

Philippe is a Senior Specialist Solutions Architect at Amazon Web Services based in Zurich, Switzerland. His role is to spread the migration and modernization best practices for large organisations.

Follow on LinkedIn