Creating node8.10 lambdas doesn't work

Issue #63 new
Patrick Barnes created an issue

I'm running localstack v0.8.7.

Refer to https://bitbucket.org/atlassian/localstack/issues/1/how-to-create-lambdas. If I try the steps with node8.10 I get an error:

// lambda.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.handler = async (event, context) => {
    context.done(undefined, 'Hello world');
};
$ zip lambda.zip lambda.js
$ aws --endpoint-url=http://localhost:4574 lambda create-function --function-name=fjs --runtime=node8.10 --role=r1 --handler=lambda.handler --zip-file fileb://lambda.zip

An error occurred (ValidationError) when calling the CreateFunction operation: Unable to find handler script in Lambda archive.

If I upload the same zip to AWS Lambda and set the Handler field to "lambda.handler" it works fine.

Comments (0)

  1. Log in to comment