Skip to content

context.succeed() and context.fail() when using lambda_invoke #8

@jonyo

Description

@jonyo

When you use grunt lambda_invoke on even the hello world script, it gives the error:

$ grunt lambda_invoke:HelloWorld
Running "lambda_invoke:HelloWorld" (lambda_invoke) task

Loading function
value1 = First Value
value2 = Second Value
value3 = Third Value
Warning: undefined is not a function Use --force to continue.

Aborted due to warnings.

I found the issue is that context.succeed function is not defined in the invoke.

Is this project still active? If so I can submit a PR to fix this by fully mocking the context object as documented in the AWS Lambda docs. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions