Configure the Java agent for AWS Elastic Beanstalk
Amazon Web Services (AWS) is a secure cloud services platform. By using Contrast, AWS users can maximize the security of their applications.
Note
Make sure you have an AWS Elastic Beanstalk account.
To configure the Java agent for AWS Elastic Beanstalk:
In your WAR file, add the contrast.jar file to WEB-INF/lib/.
Repackage and deploy the new WAR file, either as a new application or an update to a previous application.
Locate and connect to the underlying Elastic Compute Cloud (EC2) instance. Once connected, use the following command to find the path to contrast.jar file. (Add the full path to the agent after
/opt
, as appropriate.)sudo find /opt -name "contrast.jar"
Next, you will pass the
-javaagent
flag to JVM in Elastic Beanstalk. In the AWS console, open Elastic Beanstalk. Choose a region and your application.In the left navigation, select Configurations.
Open Software Configuration.
In the JVM command line options field, substitute
<YourContrastJarPath>
for the path to your Contrast JAR and enter-javaagent:<YourContrastJarPath>
.Select Apply to save.
Elastic Beanstalk updates your environment.
For more information about AWS and the Contrast Java agent, go to the AWS documentation.