如何通过CloudFormation使用MongoDB设置解析服务器?

时间:2016-07-29 19:06:25

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

我想通过AWS中的CloudFOrmation在MongoDB中部署ParseServer,在亚马逊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

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

谢谢!

1 个答案:

答案 0 :(得分:0)

AWS不断更新其Elastic Beanstalk解决方案堆栈并使其旧堆栈过时,因此您需要将解决方案堆栈字符串更改为当前支持的版本。有关最新支持的解决方案堆栈名称,请参阅Supported Platforms (Node.js)页面。目前(截至2016年7月30日)<span>,将来可能会再次发生变化。