Here’s a tip for an error that may appear when attempting to edit an AWS Lambda function in the console:

Your Lambda function “getProducts” cannot be edited inline since the file name specified in the handler does not match a file name in your deployment package

This error can occur when no file in a deployment package matches the name defined by Handler in the console, which is index.handler by default.

In that case, add or rename a file to index.js (with Node.js functions, for example), and deploy the package again:

$ aws lambda update-function-code --function-name getProducts --zip-file fileb://

Then it should be possible to view and edit the function in the AWS console.