I\'ve just uploaded a zip to AWS Lambda which included the \"ref\" (https://www.npmjs.com/package/ref), which is needed to validate an iOS Game Center authentication token (
This happens when you build on one architecture and then attempt to use the same built addon on a different architecture (or platform in some cases).
According to this page, addons may have to be compiled against an Amazon Linux image on EC2 in order for the compiled addons to be usable on their Lambda service.
This doesn't apply exactly to your question, but in case anyone stumbles across this when using AWS Elastic Beanstalk, it could be a result of uploading the node_modules/
directory along with everything else, so you need to force it to ignore the file.
.ebignore
node_modules/