Menu
AWS Elastic Beanstalk
Developer Guide (API Version 2010-12-01)

update

Note

This version of the EB CLI and its documentation have been replaced with version 3. Version 3 has different commands and is not backwards compatible with version 2. For information on the new version, see The Elastic Beanstalk Command Line Interface (EB CLI).

Description

Updates the specified environment by reading the .elasticbeanstalk/optionsettings. (Setting values in .elasticbeanstalk/optionsettings take precedence over the values specified for the same settings specified in .ebextensions/*.conf if the settings are configured in both places.) Use this operation after making changes to your settings (for example, via init or branch).

Syntax

eb update

Options

Name Description Required

-e

or

--environment-name ENVIRONMENT_NAME

The environment you want to update.

Type: String

Default: Current setting

No

Common options

For more information, see Eb Common Options.

No

Output

If successful, the command returns the status of the update operation.

Example

The following example request updates the environment.

PROMPT> eb update 

Update environment? [y/n]: y
Updating environment "MyApp-env". This may take a few minutes.
2014-05-15 17:10:34 INFO Updating environment MyApp-env's configuration
settings.
2014-05-15 17:11:12 INFO Successfully deployed new configuration to en
vironment.
2014-05-15 17:11:12 INFO Environment update completed successfully.
Update of environment "MyApp-env" has completed.