You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, as referenced in issue issue#74 , I found its because the ebextension 02_logs_cloudwatch_imds2.config creating the file: /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.d/laravel_logs.json get deleted after deploy I believe @rennokki
If I create the file laravel_logs.json manually AND execute the /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -s -c file:/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.d/laravel_logs.json manually it works, but not on automatic deploy because the file gets deleted because its on stage only and doesn't get moved, maybe if we move it on a hook, but have to try
The text was updated successfully, but these errors were encountered:
Frtrillo
changed the title
02_logs_cloudwatch_imds2.config: laravel_logs.json file is getting deleted after deploy making it fail executing cloudwatch agent
cloudwatch agent fails because laravel_logs.json file is not found
Sep 26, 2022
Hello, as referenced in issue issue#74 , I found its because the ebextension
02_logs_cloudwatch_imds2.config
creating the file:/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.d/laravel_logs.json
get deleted after deploy I believe @rennokkiIf I create the file laravel_logs.json manually AND execute the
/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -s -c file:/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.d/laravel_logs.json
manually it works, but not on automatic deploy because the file gets deleted because its on stage only and doesn't get moved, maybe if we move it on a hook, but have to tryThe text was updated successfully, but these errors were encountered: