简体   繁体   English

无法使用已安装的弹性文件系统部署 Elastic Beanstalk 应用程序

[英]Unable to deploy Elastic Beanstalk Application with mounted Elastic File System

I am in the process of migrating a Node.js application from the deprecated Amazon Linux 1 platform to an Amazon Linux 2 platform.我正在将 Node.js 应用程序从已弃用的 Amazon Linux 1 平台迁移到 Amazon Linux 2 平台。

Everything works, up until I attempt to mount the EFS following the exact directions provided by Amazon .一切正常,直到我尝试按照Amazon 提供的确切说明安装 EFS。 If I do not include this script (modified with the appropriate values), the Node app deploys (using eb deploy ) and all parts that are not dependent on the EFS work as expected.如果我不包含此脚本(使用适当的值进行修改),Node 应用程序将部署(使用eb deploy )并且所有不依赖于 EFS 的部分都会按预期工作。

Once I include the script, I receive the following error and the deployment fails -包含脚本后,我收到以下错误并且部署失败 -

[ERROR] An error occurred during execution of command [app-deploy] - [PreBuildEbExtension]. Stop running the command. Error: EbExtension build failed. Please refer to /var/log/cfn-init.log for more details. 

When running on the Linux 1 platform, I experienced no issues with this EFS script and variables.在 Linux 1 平台上运行时,我没有遇到此 EFS 脚本和变量的问题。 I have tried using a larger EC2 instance, and that has not worked (t2.small instead of a t2.micro).我曾尝试使用更大的 EC2 实例,但没有成功(t2.small 而不是 t2.micro)。

The issue turned out to be incorrectly set security groups.问题原来是安全组设置不正确。

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

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