assertible / lambda-cloudwatch-slack

Send AWS CloudWatch notifications to a Slack channel using Lambda
https://assertible.com/blog/npm-package-lambda-cloudwatch-slack
MIT License
482 stars 249 forks source link

Module initialisation Error #49

Open doles2 opened 4 years ago

doles2 commented 4 years ago

Hi, looks like a great function, thank you!

While deployment works, and npm test works, the actual function doesn't. Whenever the lambda function triggers, it posts this error.

module initialization error: Error
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at Object.Module._extensions..js (module.js:662:20)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)

I've tried with permissions to set every file to 777, tried zipping and manual upload.

Any ideas?