AWS Elastic Beanstalk
开发人员指南
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 Amazon AWS 入门

start

注意

该版本的 EB CLI 及其文档已替换成版本 3 (在本部分中,EB CLI 3 表示 EB CLI 的版本 3 及更高版本)。有关新版本的信息,请参阅 Elastic Beanstalk 命令行界面 (EB CLI)

描述

创建当前应用程序并将其部署到指定环境中。有关介绍如何使用 eb start 部署示例应用程序的教程,请参阅开始使用 Eb

语法

eb start

选项

名称 描述 必需

-e

或者

--environment-name ENVIRONMENT_NAME

要在其中创建或启动当前应用程序的环境。

类型:字符串

默认设置:当前设置

常用选项

有关更多信息,请参阅 Eb 通用选项

输出

如果成功,则该命令返回 start 操作的状态。如果在启动期间发生问题,则可以使用 事件 操作获取详细信息。

示例 1

下面的示例将启动环境。

PROMPT> start Starting application "MyApp". Waiting for environment "MyApp-env" to launch. 2014-05-13 07:25:33 INFO createEnvironment is starting. 2014-05-13 07:25:39 INFO Using elasticbeanstalk-us-west-2-8EXAMPLE3 as Amazon S3 storage bucket for environment data. 2014-05-13 07:26:07 INFO Created EIP: xx.xx.xxx.xx 2014-05-13 07:26:09 INFO Created security group named: awseb-e-vEXAMPLErp-stack- AWSEBSecurityGroup-1GCEXAMPLEG0 2014-05-13 07:26:17 INFO Creating RDS database named: aavcEXAMPLE5y. This may take a few minutes. 2014-05-13 07:32:36 INFO Created RDS database named: aavcEXAMPLE5y 2014-05-13 07:34:08 INFO Waiting for EC2 instances to launch. This may take a few minutes. 2014-05-13 07:36:24 INFO Application available at MyApp-env-z4vsuuxh36.elastic beanstalk.com. 2014-05-13 07:36:24 INFO Successfully launched environment: MyApp-env Application is available at "MyApp-env-z4EXAMPLE6.elasticbeanstalk.com"

示例 2

下面的示例将当前应用程序启动到名为 MyApp-test-env 的环境中。

PROMPT> start -e MyApp-test-env Starting application "MyApp". Waiting for environment "MyApp-test-env" to launch. 2014-05-13 07:25:33 INFO createEnvironment is starting. 2014-05-13 07:25:39 INFO Using elasticbeanstalk-us-west-2-8EXAMPLE3 as Amazon S3 storage bucket for environment data. 2014-05-13 07:26:07 INFO Created EIP: xx.xx.xxx.xx 2014-05-13 07:26:09 INFO Created security group named: awseb-e-vEXAMPLErp-stack- AWSEBSecurityGroup-1GCEXAMPLEG0 2014-05-13 07:26:17 INFO Creating RDS database named: aavcEXAMPLE5y. This may take a few minutes. 2014-05-13 07:32:36 INFO Created RDS database named: aavcEXAMPLE5y 2014-05-13 07:34:08 INFO Waiting for EC2 instances to launch. This may take a few minutes. 2014-05-13 07:36:24 INFO Application available at MyApp-test-envz4vsuuxh36. elasticbeanstalk.com. 2014-05-13 07:36:24 INFO Successfully launched environment: MyApp-test-env Application is available at "MyApp-test-env-z4EXAMPLE6.elasticbeanstalk.com"