Running AWS Firehose in lambda.js gives an undefined error

試著忘記壹切 提交于 2019-12-22 09:25:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!