Code explained at blog series https://3sanket3.com/posts/how-to-create-serverless-api-functions-with-aws-lambda https://3sanket3.com/posts/api-key-authentication-for-accessing-serverless-api-at-aws-api-gateway