Hi, I'm James. Welcome to another video in this series on building serverless applications on AWS with Rust.
When building API's with Amazon API Gateway there are a couple of options for authorization. One of which, is the ability to define an AWS Lambda function to provide your authorization logic. Typically, you will want auth to add as little overhead to your application as possible, both from a cost and performance perspective.
This is a perfect use case for Rust & AWS Lambda. High performance with a low memory footprint enables developers to add low latency custom authorization to their API's using Rust & Lambda.
Links
GitHub Link - https://github.com/jeastham1993/rust-on-serverless/tree/main/src/axum-lambda-server-side-rendering
Install Rust - https://www.rust-lang.org/tools/install
Install Cargo Lambda - https://www.cargo-lambda.info/guide/getting-started.html
Install AWS SAM - https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html
API Gateway Custom Authorizers - https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-use-lambda-authorizer.html
Web - https://jameseastham.co.uk
Twitter - https://twitter.com/plantpowerjames
LinkedIn - https://www.linkedin.com/in/james-eastham/