【问题标题】:How to set up Parse Server with MongoDB via CloudFormation?如何通过 CloudFormation 使用 MongoDB 设置 Parse Server?
【发布时间】:2016-07-31 02:35:24
【问题描述】:

我想通过 AWS 中的 CloudFOrmation 将 ParseServer 与 MongoDB 一起部署,亚马逊 post 中的一条评论说他们正在使用运行 Node.js 的过时版本的实例。我将“SolutionStackName”更改为最新,但我在事件日志中得到了这个:

2016-07-29  Status  Type    Logical ID  Status reason
14:02:38 UTC-0500   CREATE_FAILED   AWS::ElasticBeanstalk::ConfigurationTemplate    DevEBConfigTemplate Resource creation cancelled
14:02:37 UTC-0500   CREATE_FAILED   AWS::ElasticBeanstalk::ApplicationVersion   ParseAppVersion Resource creation cancelled
14:02:37 UTC-0500   CREATE_FAILED   AWS::IAM::Role  MongoDBHostRole Resource creation cancelled
14:02:37 UTC-0500   CREATE_FAILED   AWS::EC2::InternetGateway   InternetGateway Resource creation cancelled
14:02:37 UTC-0500   CREATE_FAILED   AWS::IAM::Role  WebAppRole  Resource creation cancelled
14:02:35 UTC-0500   CREATE_FAILED   AWS::ElasticBeanstalk::ConfigurationTemplate    NonDevEBConfigTemplate  No Solution Stack named '64bit Amazon Linux 2015.09 v2.0.8 running Node.js' found.
14:02:34 UTC-0500   CREATE_IN_PROGRESS  AWS::ElasticBeanstalk::ConfigurationTemplate    DevEBConfigTemplate 
14:02:34 UTC-0500   CREATE_IN_PROGRESS  AWS::ElasticBeanstalk::ConfigurationTemplate    NonDevEBConfigTemplate  
14:02:34 UTC-0500   CREATE_IN_PROGRESS  AWS::ElasticBeanstalk::ApplicationVersion   ParseAppVersion 
14:02:30 UTC-0500   CREATE_COMPLETE AWS::ElasticBeanstalk::Application  WebAppElasticBeanstalkApp   
14:02:30 UTC-0500   CREATE_IN_PROGRESS  AWS::IAM::Role  WebAppRole  Resource creation Initiated
14:02:29 UTC-0500   CREATE_COMPLETE AWS::CloudFormation::WaitConditionHandle    MongoDBWaitHandle01 
14:02:29 UTC-0500   CREATE_IN_PROGRESS  AWS::EC2::InternetGateway   InternetGateway Resource creation Initiated
14:02:29 UTC-0500   CREATE_IN_PROGRESS  AWS::IAM::Role  MongoDBHostRole Resource creation Initiated
14:02:29 UTC-0500   CREATE_IN_PROGRESS  AWS::EC2::VPC   MyVPC   
14:02:29 UTC-0500   CREATE_IN_PROGRESS  AWS::ElasticBeanstalk::Application  WebAppElasticBeanstalkApp   Resource creation Initiated
14:02:28 UTC-0500   CREATE_IN_PROGRESS  AWS::EC2::InternetGateway   InternetGateway 
14:02:28 UTC-0500   CREATE_IN_PROGRESS  AWS::CloudFormation::WaitConditionHandle    MongoDBWaitHandle01 Resource creation Initiated
14:02:28 UTC-0500   CREATE_IN_PROGRESS  AWS::IAM::Role  MongoDBHostRole 
14:02:28 UTC-0500   CREATE_IN_PROGRESS  AWS::ElasticBeanstalk::Application  WebAppElasticBeanstalkApp   
14:02:28 UTC-0500   CREATE_IN_PROGRESS  AWS::IAM::Role  WebAppRole  
14:02:28 UTC-0500   CREATE_IN_PROGRESS  AWS::CloudFormation::WaitConditionHandle    MongoDBWaitHandle01 
14:02:21 UTC-0500   CREATE_IN_PROGRESS  AWS::CloudFormation::Stack  ParseBackend    User Initiated

我只是不知道该怎么办。还有其他选择,但我认为这是最好的,有什么想法吗?

谢谢!

【问题讨论】:

  • 您是否阅读了整个评论? :-D 它解释了你应该做什么......你的日志说你使用的是 Linux v2.0.8,但你应该使用最新的,所以像 v2.1.1
  • 是的,对不起。我只是在模板的一行中更改了机器版本,但现在可以了:-D

标签: node.js mongodb amazon-web-services parse-platform amazon-cloudformation


【解决方案1】:

AWS 不断更新其 Elastic Beanstalk 解决方案堆栈并使其旧堆栈过时,因此您需要将解决方案堆栈字符串更改为当前支持的版本。请参阅Supported Platforms (Node.js) 页面了解最新支持的解决方案堆栈名称。目前(截至 2016 年 7 月 30 日)64bit Amazon Linux 2016.03 v2.1.3 running Node.js,将来可能会再次更改。

【讨论】:

  • 我的错,我需要在模板的3部分更改机器的版本
猜你喜欢
  • 2016-05-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-25
  • 1970-01-01
  • 2020-07-12
  • 1970-01-01
相关资源
最近更新 更多