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...

Managing Environments

The AWS Elastic Beanstalk console enables you to save or change how the AWS resources your application environments use are provisioned and configured. This section provides information on the specific service settings you can save or edit as part of your application environment configuration. For information about managing your application environments using the AWS Toolkit for Eclipse, see Managing AWS Elastic Beanstalk Application Environments. For information about managing your application environments using the AWS Toolkit for Visual Studio, see Managing Your AWS Elastic Beanstalk Application Environments. For information about launching a new environment with a saved configuration, see Launching New Environments.

Saving Environment Configuration Settings

AWS Elastic Beanstalk configures a number of AWS cloud computing services when it deploys your application. You can save your preferred environment's configuration settings, which include the settings for these individual services, using the Save Configuration wizard. You can easily apply your saved environment's configuration settings to other environments.

AWS Management Console

To save an application's environment settings

  1. Open the AWS Elastic Beanstalk console at https://console.aws.amazon.com/elasticbeanstalk/.

  2. From the region list, select a region.

  3. Select your application from the drop-down list.

  4. Below the application selection drop-down list, click the Actions drop-down list for your application environment in the application's Environments list and select Save Configuration.

    AWS Elastic Beanstalk Edit Configuration Window

    The Save Configuration window is displayed.

    AWS Elastic Beanstalk Save Configuration Window
  5. Type the name of the configuration you want to save in the Configuration Name text box.

  6. Type a description for the configuration in the Description text box. This step is optional.

  7. Click Save Config.

CLI

To save an application's environment settings

  • Create a configuration template from an existing application.

    PROMPT> elastic-beanstalk-create-configuration-template -a [Application Name] -t [Template Name]

API

To save an application's environment settings

  • Call CreateConfigurationTemplate with the following parameters:

    • ApplicationName = SampleApp

    • TemplateName = MyConfigTemplate

    Example

    https://elasticbeanstalk.us-east-1.amazon.com/?ApplicationName=SampleApp
    &TemplateName=MyConfigTemplate
    &Operation=CreateConfigurationTemplate
    &AuthParams          

Changing Environment Configurations Settings

AWS Elastic Beanstalk configures a number of AWS cloud computing services when deploying your application. You can edit your environment's configuration settings, which include the settings for these individual services, using the Edit Configuration wizard.

AWS Management Console

To edit an application's environment settings

  1. Open the AWS Elastic Beanstalk console at https://console.aws.amazon.com/elasticbeanstalk/.

  2. From the region list, select a region.

  3. Select your application from the drop-down list.

  4. Below the application selection drop-down list, click the Actions drop-down list for your application environment in the application's Environments list and select Edit/Load Configuration.

    AWS Elastic Beanstalk Edit Configuration Window

    The Edit Configuration window is displayed.

    AWS Elastic Beanstalk Edit Configuration Window
  5. Select the configuration you would like to use for the environment from the Saved Configurations drop-down menu. The following sections describe in more detail the configuration options.

CLI

To edit an application's environment settings

  • Update an application's environment settings.

    PROMPT> elastic-beanstalk-update-environment -e MySampleAppEnv -f "Options.txt"

Options.txt

[
  {"Namespace": "aws:autoscaling:trigger",
   "OptionName": "LowerThreshold",
   "Value": "1000000"}
]

API

To edit an application's environment settings

  • Call UpdateEnvironment with the following parameters:

    • EnvironmentName = SampleAppEnv

    • OptionSettings.member.1.Namespace = aws:autoscaling:trigger

    • OptionSettings.member.1.OptionName = LowerThreshold

    • OptionSettings.member.1.Value = 1000000

    Example

    https://elasticbeanstalk.us-east-1.amazon.com/?EnvironmentName=SampleAppEnv
    &OptionSettings.member.1.Namespace=aws%3Aautoscaling%3Atrigger
    &OptionSettings.member.1.OptionName=LowerThreshold
    &OptionSettings.member.1.Value=1000000
    &Operation=UpdateEnvironment
    &AuthParams