Prerequisites:
- Amazon Web Services (AWS) account.
- Atatus license key. If you do not have a license key, create a new account
Installation Steps:
Create a folder called
.ebextensions
inside the beanstalk application followed by creating a new file inside it calledatatus.config
.Add the following code:
copypackages: yum: atatus-php-agent: [] rpm: atatus-php-agent: https://atatus-artifacts.s3.amazonaws.com/atatus-php/rpm/x86_64/atatus-php-agent-1.16.0.x86_64.rpm commands: update_atatus_license_key: command: sed -i -e 's/atatus\.license_key = .*/atatus\.license_key = APM_LIC_KEY/' /etc/php.d/atatus.ini update_app_name: command: sed -i -e 's/atatus\.app_name = .*/atatus\.app_name = YOUR_APP_NAME/' /etc/php.d/atatus.ini
APM_LIC_KEY
- fill it with the Atatus APM License key in this line of code.YOUR_APP_NAME
- fill it with the application name in this line of code.To push your application to elastic beanstalk,
- use eb deploy.
- if you are using Eb CLI 2.6, you can use git aws.push if required.