AWS部署失败 - jhipster app - EBS

时间:2017-04-05 19:02:07

标签: amazon-web-services elastic-beanstalk jhipster

我尝试通过直接上传war来在AWS Elastic BeanStalk中部署我的jhipster应用程序。创建环境后,我收到此错误。

 [Instance: i-08f7c9efd8b2c5476] Command failed on instance. Return code: 1 
 Output: (TRUNCATED).../util/SystemPropertyUtils.class Failed to execute 
  '/usr/bin/unzip -o -d /var/app/staging 
  /opt/elasticbeanstalk/deploy/appsource/source_bundle' Failed to execute 
  '/usr/bin/unzip -o -d /var/app/staging 
  /opt/elasticbeanstalk/deploy/appsource/source_bundle'. Hook 
  /opt/elasticbeanstalk/hooks/restartappserver/pre/01_configure_application.sh 
   failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.

请建议我下一步做什么。

enter image description here

我也尝试按照jhipster页面中的文档使用 yo jhipster:aws 命令。

我得到的是缺少凭证配置

我的问题是我在给定的loaction中添加了 credentials.properties 文件 〜/ .aws /凭证...

表示.aws / credentials / credentials.properties(文件)。是文件扩展名右,文件夹结构是,。

  Create S3 bucket
  Error jhipster:aws

  Missing credentials in config

2 个答案:

答案 0 :(得分:0)

我不确定您的第一个错误,因为您尝试手动设置环境,我们需要重现信息。

关于yo jhipster:aws失败,AWS凭据文件应位于~/.aws/credentials,而不是~/.aws/credentials/credentials.properties

  

之后在Mac / Linux上的〜/ .aws / credentials或Windows上的C:\ Users \ USERNAME.aws \凭证创建凭证文件。

来自文档:https://jhipster.github.io/aws/

答案 1 :(得分:0)

为进一步说明,请使用vi并在“〜/ .aws”文件夹下创建一个名为“ credentials”的文件。