eb clone - Amazon Elastic Beanstalk
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

eb clone

Description

Clones an environment to a new environment so that both have identical environment settings.

Note

By default, regardless of the solution stack version of the environment from which you create the clone, the eb clone command creates the clone environment with the most recent solution stack. You can suppress this by including the --exact option when you run the command.

Syntax

eb clone

eb clone environment-name

Options

Name

Description

-n string

or

--clone_name string

Desired name for the cloned environment.

-c string

or

--cname string

Desired CNAME prefix for the cloned environment.

--envvars

Environment properties in a comma-separated list with the format name=value.

Type: String

Constraints:

  • Key-value pairs must be separated by commas.

  • Keys and values can contain any alphabetic character in any language, any numeric character, white space, invisible separator, and the following symbols: _ . : / + \ - @

  • Keys can contain up to 128 characters. Values can contain up to 256 characters.

  • Keys and values are case sensitive.

  • Values cannot match the environment name.

  • Values cannot include either aws: or elasticbeanstalk:.

  • The combined size of all environment properties cannot exceed 4096 bytes.

--exact

Prevents Elastic Beanstalk from updating the solution stack version for the new clone environment to the most recent version available (for the original environment's platform).

--scale number

The number of instances to run in the clone environment when it is launched.

--tags name=value

Tags for the resources in your environment in a comma-separated list with the format name=value.

--timeout

The number of minutes before the command times out.

Common options

Output

If successful, the command creates an environment that has the same settings as the original environment or with modifications to the environment as specified by any eb clone options.

Example

The following example clones the specified environment.

$ eb clone Enter name for Environment Clone (default is tmp-dev-clone): Enter DNS CNAME prefix (default is tmp-dev-clone): Environment details for: tmp-dev-clone Application name: tmp Region: us-west-2 Deployed Version: app-141029_144740 Environment ID: e-vjvrqnn5pv Platform: 64bit Amazon Linux 2014.09 v1.0.9 running PHP 5.5 Tier: WebServer-Standard-1.0 CNAME: tmp-dev-clone.elasticbeanstalk.com Updated: 2014-10-29 22:00:23.008000+00:00 Printing Status: 2018-07-11 21:04:20 INFO: createEnvironment is starting. 2018-07-11 21:04:21 INFO: Using elasticbeanstalk-us-west-2-888888888888 as Amazon S3 storage bucket for environment data. ... 2018-07-11 21:07:10 INFO: Successfully launched environment: tmp-dev-clone