Prerequisites:

  • Amazon Web Services (AWS) account.
  • Atatus license key. If you do not have a license key, create a new account

Installation Steps:

  1. Create a folder called .ebextensions inside the beanstalk application followed by creating a new file inside it called atatus.config.

  2. Add the following code:

    copy
    icon/buttons/copy
    packages:
      yum:
        atatus-php-agent: []
      rpm:
        atatus-php-agent: https://atatus-artifacts.s3.amazonaws.com/atatus-php/rpm/x86_64/atatus-php-agent-1.15.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.

  3. To push your application to elastic beanstalk,