Replies: 2 comments 3 replies
-
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) |
Beta Was this translation helpful? Give feedback.
-
Hi, to clarify you should not set AWS access keys in Lambda, those are already set for you. "The security token included in the request is invalid" that tells me that the credentials are invalid, so it's consistent with the theory that you uploaded credentials? Try again without uploading AWS access keys (e.g. in |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions