- 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
- Go to
AWS EB enviroment -> Configuration -> Updates, monitoring, and logging -> Edit
. add theAIKIDO_TOKEN
andAIKIDO_BLOCKING
environment values and save. You can find their values in the Aikido platform.