问题
var AWS = require('aws-sdk');
var firehose = new AWS.Firehose();
Running above code in lambda with proper roles configured, AWS returns
errorMessage": "undefined is not a function
Anyone have an idea how can I get firehouse to load in aws-sdk?
回答1:
I opened ticket, with amazon and they verified firehouse isn't working with lambda, yet is working ec2.
They have escalated the issue to a service-team in order to support FireHose.
回答2:
If you update aws-sdk module to version 2.3.19 you should not get an error.
来源:https://stackoverflow.com/questions/33106717/running-aws-firehose-in-lambda-js-gives-an-undefined-error