使用了EFS挂载的Elasticbeantalk部署碰到构建失败错误

0

【以下的问题经过翻译处理】 我在使用Elasticbeantalk部署基于Flask的应用程序,并使用额外的配置文件进行EFS挂载的时候遇到以下错误,然后部署就失败了。请帮忙解决一下。


2022-12-30 15:24:57,931 [ERROR] Command 01_mount (/tmp/mount-efs.sh) failed 2022-12-30 15:24:57,932 [ERROR] Error encountered during build of prebuild_0_efs4_tutorial: Command 01_mount failed Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/cfnbootstrap/construction.py", line 579, in run_config CloudFormationCarpenter(config, self._auth_config, self.strict_mode).build(worklog) File "/usr/lib/python3.7/site-packages/cfnbootstrap/construction.py", line 278, in build self._config.commands) File "/usr/lib/python3.7/site-packages/cfnbootstrap/command_tool.py", line 127, in apply raise ToolError(u"Command %s failed" % name) cfnbootstrap.construction_errors.ToolError: Command 01_mount failed 2022-12-30 15:24:57,934 [ERROR] -----------------------BUILD FAILED!------------------------


我尝试在mount.config文件中进行了以下更改,但仍然出现相同的错误。

EFS_MOUNT_DIR='/efs' EFS_FILE_SYSTEM_ID='fs-xxxxxxxx'

profile picture
专家
已提问 5 个月前75 查看次数
1 回答
0

【以下的回答经过翻译处理】 问题原因是实例和EFS文件系统被创建在不同的可用区了。

profile picture
专家
已回答 5 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则