I have installed
AWS EB via SSH the server is
PHP 7.4 running on 64bit Amazon Linux 2/3.3.6 with laravel 7.0
everything is fine with installation but when I put this code inside the worker file the server went to yellow health and said
1 out of 1 instance are impacted. See instance health for details.
the code inside
[program:laravel-worker] process_name=%(program_name)s_%(process_num)02d command=sudo php /var/app/current/artisan queue:work sqs --sleep=3 --tries=3 --daemon autostart=true autorestart=true user=root numprocs=8 startsecs=0 redirect_stderr=true stdout_logfile=/var/app/current/storage/worker.log
when replace above code with this one it is back to green:
[program:laravel-worker] process_name=%(program_name)s_%(process_num)02d command=php /var/app/current/artisan queue:work sqs --sleep=3 --tries=3 autostart=true autorestart=true stopasgroup=true killasgroup=true user=root numprocs=8 redirect_stderr=true stdout_logfile=/var/app/current/storage/worker.log stopwaitsecs=3600
But the problem with the second one it does not work! and got this error in
InvalidArgumentException Missing required client configuration options: region: (string) A "region" configuration value is required for the "sqs" service (e.g., "us-west-2"). A list of available public regions and endpoints can be found at http://docs.aws.amazon.com/general/latest/gr/rande.html.
Source: Ask PHP