I struggled a bit with the same question, and I think I finally got the answer:
var AWS = require('aws-sdk');
AWS.config.region = 'us-east-1';
var opsworks = new AWS.OpsWorks();
opsworks.describeStacks({}, function(err, data) {
console.log(data);
context.succeed(message);
});
Hide result-, , AWS API.
Github SNS, Opsworks.