0

I have a Greengrass Core device and on it I deployed a simple Lambda function but I don't know how to locally trigger it. Is it even possible?

I am looking for a command line call, something like this: "aws lambda invoke --function-name my-math-function --payload '{"action": "square","number": 3}' output.txt" but this one triggers a lambda function that is defined in the cloud. I want to trigger my locally running lambda (deployed as a component in greengrass).

1 Answer 1

1

You can manage AWS Greengrass Lambda functions with AWS Serverless Application Model(SAM). Please refer to the link here: Managing Greengrass Lambda Code With AWS SAM

You can invoke your function locally by using the sam local invoke command

Sign up to request clarification or add additional context in comments.

1 Comment

Great, glad that it worked for you. Can you accept is as an answer?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.