Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 897 Bytes

aws-elastic-beanstalk.md

File metadata and controls

26 lines (22 loc) · 897 Bytes

AWS Elastic beanstalk

  1. In your repo, create a new file in .ebextensions/01_aikido_php_firewall.config with the following content:
commands:
  aikido-php-firewall:
    command: "rpm -Uvh --oldpackage https://github.com/AikidoSec/firewall-php/releases/download/v1.0.108/aikido-php-firewall.x86_64.rpm"
    ignoreErrors: true

files:
  "/opt/elasticbeanstalk/tasks/bundlelogs.d/aikido-php-firewall.conf" :
    mode: "000755"
    owner: root
    group: root
    content: |
      /var/log/aikido-*/*.log

  "/opt/elasticbeanstalk/tasks/taillogs.d/aikido-php-firewall.conf" :
    mode: "000755"
    owner: root
    group: root
    content: |
      /var/log/aikido-*/*.log
  1. Go to AWS EB enviroment -> Configuration -> Updates, monitoring, and logging -> Edit. add the AIKIDO_TOKEN and AIKIDO_BLOCKING environment values and save. You can find their values in the Aikido platform.