A complete walkthrough of creating an AWS Lambda function from zero using Node.js on the AWS Console and the AWS CLI, with the IAM execution role, packaged code, invocation test, and an optional public Function URL.
Steps covered:
00:00 Set up AWS Lambda with Node.js
01:31 Create the execution IAM role
03:46 Write and package function code
05:18 Create and upload Lambda function
07:39 Test the function with invocation
10:40 Common Lambda failure modes
Links:
AWS Lambda docs: https://docs.aws.amazon.com/lambda/
AWS CLI Lambda reference: https://docs.aws.amazon.com/cli/lates...
IAM roles for Lambda: https://docs.aws.amazon.com/lambda/la...
Node.js runtime on Lambda: https://docs.aws.amazon.com/lambda/la...
Runtime used: Node.js 20.x (migrate from nodejs18.x)