AWS API Gateway Custom Lambda Authorizer

How to setup AWS Lambda Custom Authorizer

Key Features

Handle AWS Cognito Access Token
Handle AWS Cognito Id Token
IAC (infra-as-code) via Serverless Framework

Detailed Overview

In this template you will learn what it looks like to build an AWS Lambda custom authorizer for AWS API Gateway.

You will also find a full IAC (Infra-as-code) setup with Serverless Framework that deploys all the resources.

In total 4 lambda functions are created, two that act as the AWS Lambda custom authorizers and two that attach that custom AWS Lambda authorizer for confirming it works properly.

You could easily take this template and trial different authentication scenarios out in a POC (proof-of-concept) setup then copy that tailored version to your actual serverless architecture.

AWS CloudFormation
Serverless Framework

Ryan Jones

Ryan Jones is the founder of Serverless Guru, author of the Serverless Zero to Paid Professional course, an avid blogger, and surfer.