Managing Elastic Beanstalk application environments - 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).

Managing Elastic Beanstalk application environments

With the Amazon Toolkit for Eclipse, you can change the provisioning and configuration of the Amazon resources that are used by your application environments. For information on how to manage your application environments using the Amazon Management Console, see Managing environments. This section discusses the specific service settings you can edit in the Amazon Toolkit for Eclipse as part of your application environment configuration. For more about Amazon Toolkit for Eclipse, see Amazon Toolkit for Eclipse Getting Started Guide.

Changing environment configuration settings

When you deploy your application, Elastic Beanstalk configures a number of Amazon cloud computing services. You can control how these individual services are configured using the Amazon Toolkit for Eclipse.

To edit an application's environment settings
  1. If Eclipse isn't displaying the Amazon Explorer view, in the menu choose Window, Show View, Amazon Explorer. Expand the Elastic Beanstalk node and your application node.

  2. In Amazon Explorer, double-click your Elastic Beanstalk environment.

  3. At the bottom of the pane, click the Configuration tab.

    You can now configure settings for the following:

    • EC2 server instances

    • Load balancer

    • Autoscaling

    • Notifications

    • Environment types

    • Environment properties

Setting system properties with Amazon Toolkit for Eclipse

The following example sets the JDBC_CONNECTION_STRING system property in the Amazon Toolkit for Eclipse. After you set this properties, it becomes available to your Elastic Beanstalk application as system properties called JDBC_CONNECTION_STRING.

Note

The Amazon Toolkit for Eclipse does not yet support modifying environment configuration, including system properties, for environments in a VPC. Unless you have an older account using EC2 Classic, you must use the Amazon Management Console (described in the next section) or the EB CLI.

Note

Environment configuration settings can contain any printable ASCII character except the grave accent (`, ASCII 96) and cannot exceed 200 characters in length.

To set system properties for your Elastic Beanstalk application

  1. If Eclipse isn't displaying the Amazon Explorer view, choose Window, Show View, Other. Expand Amazon Toolkit and then choose Amazon Explorer.

  2. In the Amazon Explorer pane, expand Elastic Beanstalk, expand the node for your application, and then double-click your Elastic Beanstalk environment.

  3. At the bottom of the pane for your environment, click the Advanced tab.

  4. Under aws:elasticbeanstalk:application:environment, click JDBC_CONNECTION_STRING and then type a connection string. For example, the following JDBC connection string would connect to a MySQL database instance on port 3306 of localhost, with a user name of me and a password of mypassword:

    jdbc:mysql://localhost:3306/mydatabase?user=me&password=mypassword

    This will be accessible to your Elastic Beanstalk application as a system property called JDBC_CONNECTION_STRING.

  5. Press Ctrl+C on the keyboard or choose File, Save to save your changes to the environment configuration. Changes are reflected in about one minute.