Prerequisites:
- Amazon Web Services (AWS) account.
- Atatus license key. If you do not have a license key, create a new account
Installation Steps:
Instructions on how to install the Atatus Java APM for AWS Elastic Beanstalk apps.
Option 1:
Create a folder called
.ebextensions
inside the Beanstalk app followed by creating a new file inside it calledatatus.config
.Add following contents to download the java agent in
.ebextensions/atatus.config
:copycontainer_commands: 01_download_atatus_jar: command: "sudo wget -P /usr/local/atatus/ https://atatus-artifacts.s3.amazonaws.com/atatus-java/downloads/latest/atatus-java-agent.jar"
Create/Update
Procfile
file with agent optionscopyweb: java -javaagent:/usr/local/atatus/atatus-java-agent.jar -Datatus.license_key=your_license_key -Datatus.app_name=your_java_app_name -jar my-server.jar
Add and commit the
.ebextensions
folder andProcfile
file in your Beanstalk application.Then deploy your app to AWS Elastic Beanstalk.
copyeb deploy
Option 2:
Download the latest Java agent
copysudo wget https://atatus-artifacts.s3.amazonaws.com/atatus-java/downloads/latest/atatus-java-agent.jar
Create/Update
Procfile
file with agent optionscopyweb: java -javaagent:/var/app/current/atatus-java-agent.jar -Datatus.license_key=your_license_key -Datatus.app_name=your_java_app_name -jar /var/app/current/my-server.jar
Bundle server Jar, agent Jar and Procfile into single zip file
copyzip my-app.zip atatus-java-agent.jar My-application.jar Procfile
Upload the zip file from AWS Elastic Beanstalk UI.