简体   繁体   English

AWS Lambda错误:生成EACCES

[英]AWS Lambda Error: spawn EACCES

recently I was using aws along with lambda function to work on my files on S3. 最近,我使用了aws以及lambda函数来处理S3上的文件。 Sadly after uploading my zipped NodeJS code using claudia, I still receive Error: spawn EACCES while processing and saving my files back on S3. 使用claudia上传压缩的NodeJS代码后,可悲的是,我仍然收到错误消息:在处理并将文件保存回S3时生成EACCES。 The same thing appears after uploading using aws console. 使用aws控制台上传后,也会出现相同的情况。 My buckets have configured policies to allow getting and putting objects. 我的存储桶已配置了允许获取和放置对象的策略。 Also lambda has IAM Role and has full access to bucket. lambda还具有IAM角色,并具有对存储桶的完全访问权限。

Does someone have any idea, what can possibly go wrong? 有人有什么想法,可能出什么问题吗? I'm working on Windows. 我在Windows上工作。

Thank you 谢谢

The issue is with the command 010_add_platform_class.js missing execute permission. 问题在于命令010_add_platform_class.js缺少执行权限。

You could use chmod +x hooks/after_prepare/010_add_platform_class.js to give execute permission. 您可以使用chmod + x hooks / after_prepare / 010_add_platform_class.js授予执行权限。

I found this solution on the Ionic framework forum at the below link. 我在以下链接的Ionic框架论坛上找到了此解决方案。 http://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490/6 http://forum.ionicframework.com/t/how-to-fix-this-error-spawn-eacces/20490/6

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM