All API SDK for accessing AWS IoT, including AWS Greengrass, can be obtained on the software menu from AWS IoT Management Console. You can install it based on your device and runtime platforms.
In this section, I will show you how to invoke Lambda from AWS Greengrass Core. For testing, I used the Node.js application. You should install the aws-sdk library for Node.js. You also need to access the key ID and secret access key from the AWS IAM.
Please write the following complete program:
var AWS = require('aws-sdk');
AWS.config.update({region:'<region>'});
var accessKeyId = '<accessKeyId>'
var secretAccessKey = '<secretAccessKey>';
AWS.config.update({accessKeyId: accessKeyId, secretAccessKey: secretAccessKey});
var lambda = new AWS.Lambda();
var params = {
FunctionName: '<lambda...