Here's the step-by-step guide on how to build & deploy AWS Lambda functions using Serverless library.
This guide was inspired by this tutorial.
I prefer to use Node.js & ideally develop using Typescript. In addition, this has support for running locally, using environment variables through Secrets Manager, etc.