How to test / develop AWS Lambda locally?
I created a new AWS Lambda project with Hono. But with the Node.js template I can test my endpoints locally. This is not the case with the AWS Lambda template... Is there a way to still develop and test locally with this template?
https://hono.dev/docs/getting-started/aws-lambda
AWS Lambda - Hono
Web framework built on Web Standards for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast.
2 Replies
what happens if you just serve
lambda/index.ts
locally?
oh, you've got aws handle
in there
you could try setting up two entrypoints, one for local + the other for deployment
but that only works if you're not relying on the lambda apithis is what aws recommends: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-using-invoke.html
Locally invoke Lambda functions with AWS SAM - AWS Serverless Appli...
Invoke a Lambda function locally using the sam local invoke AWS SAM CLI command.