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

Managing Elastic Beanstalk Application Environments

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

Changing Environment Configuration Settings

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

To edit an application's environment settings

  1. If Eclipse isn't displaying the AWS Explorer view, in the menu click Window > Show View > AWS Explorer. Expand the Elastic Beanstalk node and your application node.

  2. In AWS 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 AWS Toolkit for Eclipse

The following example sets the JDBC_CONNECTION_STRING system property in the AWS 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 AWS 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 AWS 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 AWS Explorer view, choose Window, Show View, Other. Expand AWS Toolkit and then click AWS Explorer.

  2. In the AWS 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.

On this page:

  • Changing Environment Configuration Settings
  • Changing Environment TypeEnvironment Types Change your Elastic Beanstalk environment configuration to optimize for your Java application's scalability. In AWS Toolkit for Eclipse, the Environment Type section of your environment's Configuration tab lets you select either Load balanced, auto scaled or a Single instance environment, depending on the requirements of the application that you deploy. For an application that requires scalability, select Load balanced, auto scaled. For a simple, low traffic application, select Single instance. For more information, see . Configuring EC2 Server Instances Using AWS Toolkit for EclipseEC2 Server Instances Configure your Elastic Beanstalk environment's Amazon Elastic Compute Cloud (EC2) instance configuration for your Java application. Amazon Elastic Compute Cloud (EC2) is a web service for launching and managing server instances in Amazon's data centers. You can use Amazon EC2 server instances at any time, for as long as you need, and for any legal purpose. Instances are available in different sizes and configurations. For more information, go to the Amazon EC2 product page. Under Server, on your environment's Configuration tab inside the Toolkit for Eclipse, you can edit the Elastic Beanstalk environment's Amazon EC2 instance configuration.
  • Amazon EC2 Instance Types
  • Amazon EC2 Security Groups
  • Amazon EC2 Key Pairs
  • CloudWatch Metrics
  • Custom AMI ID
  • Configuring Elastic Load Balancing Using AWS Toolkit for EclipseElastic Load Balancing Configure your Elastic Beanstalk environment's load balancing configuration to distribute application loads to improve availability for your Java application. Elastic Load Balancing is an Amazon web service that improves the availability and scalability of your application. With Elastic Load Balancing, you can distribute application loads between two or more Amazon EC2 instances. Elastic Load Balancing improves availability through redundancy, and it supports traffic growth for your application. Elastic Load Balancing automatically distributes and balances incoming application traffic among all the EC2 server instances you are running. The service also makes it easy to add new instances when you need to increase the capacity of your application. Elastic Beanstalk automatically provisions Elastic Load Balancing when you deploy an application. Under Load Balancing, on the Configuration tab for your environment inside the Toolkit for Eclipse, you can edit the Elastic Beanstalk environment's load balancing configuration. The following sections describe the Elastic Load Balancing parameters you can configure for your application.
  • Ports
  • Health Checks
  • Sessions
  • Configuring Auto Scaling Using AWS Toolkit for EclipseAuto Scaling Configure your Elastic Beanstalk environment's Auto Scaling configuration to automatically launch or terminate Amazon EC2 instances based on user-defined triggers to deal with traffic changes to your Java application. Auto Scaling is an Amazon web service designed to automatically launch or terminate Amazon EC2 instances based on user-defined triggers. Users can set up Auto Scaling groups and associate triggers with these groups to automatically scale computing resources based on metrics such as bandwidth usage or CPU utilization. Auto Scaling works with Amazon CloudWatch to retrieve metrics for the server instances running your application. Auto Scaling lets you take a group of Amazon EC2 instances and set various parameters to have this group automatically increase or decrease in number. Auto Scaling can add or remove Amazon EC2 instances from that group to help you seamlessly deal with traffic changes to your application. Auto Scaling also monitors the health of each Amazon EC2 instance that it launches. If any instance terminates unexpectedly, Auto Scaling detects the termination and launches a replacement instance. This capability enables you to maintain a fixed, desired number of Amazon EC2 instances automatically. Elastic Beanstalk provisions Auto Scaling for your application. Under Auto Scaling, on your environment's Configuration tab inside the Toolkit for Eclipse, you can edit the Elastic Beanstalk environment's Auto Scaling configuration. The following sections discuss how to configure Auto Scaling parameters for your application.
  • Launch Configuration
  • Triggers
  • Configuring Notifications Using AWS Toolkit for EclipseNotifications Configure your Elastic Beanstalk environment to use the Amazon Simple Notification Service (Amazon SNS) to notify you of important events affecting your Java application. Elastic Beanstalk uses the Amazon Simple Notification Service (Amazon SNS) to notify you of important events affecting your application. To enable Amazon SNS notifications, simply enter your email address in the Email Address text box under Notifications on the Configuration tab for your environment inside the Toolkit for Eclipse. To disable Amazon SNS notifications, remove your email address from the text box. Configuring Java Containers Using AWS Toolkit for EclipseContainers Configure your Elastic Beanstalk environment to fine-tune the behavior of the Java Virtual Machine on your Amazon EC2 instances and enable or disable Amazon S3 log rotation of your Java application. The Container/JVM Options panel lets you fine-tune the behavior of the Java Virtual Machine on your Amazon EC2 instances and enable or disable Amazon S3 log rotation. You can use the AWS Toolkit for Eclipse to configure your container information. For more information on the options available for Tomcat environments, see You can modify your configuration settings with zero downtime by swapping the CNAME for your environments. For more information, see . To access the Container/JVM Options panel for your Elastic Beanstalk application If Eclipse isn't displaying the AWS Explorer view, in the menu click Window > Show View > AWS Explorer. Expand the Elastic Beanstalk node and your application node. In the AWS Explorer, double-click your Elastic Beanstalk environment. At the bottom of the pane, click the Configuration tab. Under Container, you can configure container options.
  • Remote Debugging
  • Setting System Properties with AWS Toolkit for Eclipse