AWS Elastic Beanstalk
Developer Guide (API Version 2010-12-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

elastic-beanstalk-swap-environment-cnames

Description

Swaps the CNAMEs of two environments.

Syntax

elastic-beanstalk-swap-environment-cnames [-s [name] | -S [desc]] [-d [desc] | -D [desc]]

Options

NameDescriptionRequired

-s

--source-environment-name name

The name of the source environment.

Type: String

Default: None

Conditional

-S

--source-environment-id id

The ID of the source environment.

Type: String

Default: None

Conditional

-d

--destination-environment-name name

The name of the destination environment.

Type: String

Default: None

Conditional

-D

--destination-environment-id id

The ID of the destination environment.

Type: String

Default: None

Conditional

Examples

Swapping Environment CNAMEs

This example shows how to swap the CNAME for two environments.

PROMPT> elastic-beanstalk-swap-environment-cnames -s MySampleAppEnv -d MySampleAppEnv2