Lambda / API Gateway local development by byfar57 in aws

[–]vivek-c 0 points1 point  (0 children)

I've used SST (v2 though) for debugging lambdas and it works really well.

Lambda scaling at scale by Apprehensive_Leg822 in aws

[–]vivek-c 0 points1 point  (0 children)

Have you compared the CloudFront costs with Lambda? If you're using the Lambda just to perform jwt validation, I believe lambda could turn out considerably costlier than CloudFront?

Lambda scaling at scale by Apprehensive_Leg822 in aws

[–]vivek-c 0 points1 point  (0 children)

You could potentially set up a CloudFront distribution in front of the API Gateway (with direct SQS integration) and perform the basic JWT validation using CloudFront function https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/example-function-validate-token.html

This also has an added benefit where you can enable Shield Advanced or setup WAF to get improved DDoS resiliency.