Closed PaulMcITS closed 1 year ago
Also tried changing the config to be more in line with the example in https://github.com/brefphp/laravel-bridge/blob/master/examples/getting-started/serverless.yml and still get the same error message ( I had to hard code into config/queue.php again to get that far)
HI all,
Hope you can help, been tearing my hair out for many an hour trying to get SQS working to process laravel queues in lambda.
Running on laravel 9, latest versions of bref, bref/laravel-bridge and bref/extra-php-extensions
I've set my serverless.yml up pretty much as per bref instructions
...
I've added the redis layer ,as the jobs will need to write to elasticache, and the subnets, as the jobs will need to read/write to a database.
Connecting to the queue locally, I can dispatch jobs fine. However, when lambda attempts to dispatch a job, I'm seeing errors of
InvalidClientTokenId (client): The security token included in the request is invalid
In the cloudwatch logs. I've even gone as far as to hardcode the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY into queues.php in case of some environment issue.Hope someone can help.
Cheers,
Paul