Managing Elastic Beanstalk Application Environments
Topics
- Changing Environment Configuration Settings
- Changing Environment Type
- Configuring EC2 Server Instances Using AWS Toolkit for Eclipse
- Configuring Elastic Load Balancing Using AWS Toolkit for Eclipse
- Configuring Auto Scaling Using AWS Toolkit for Eclipse
- Configuring Notifications Using AWS Toolkit for Eclipse
- Configuring Java Containers Using AWS Toolkit for Eclipse
- Setting System Properties with AWS Toolkit for Eclipse
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
-
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 AWS Explorer, double-click your Elastic Beanstalk environment.
-
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
-
If Eclipse isn't displaying the AWS Explorer view, choose Window, Show View, Other. Expand AWS Toolkit and then click AWS Explorer.
-
In the AWS Explorer pane, expand Elastic Beanstalk, expand the node for your application, and then double-click your Elastic Beanstalk environment.
-
At the bottom of the pane for your environment, click the Advanced tab.
-
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 ofmypassword
: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
. -
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.