brefphp / laravel-bridge

Package to use Laravel on AWS Lambda with Bref
https://bref.sh/docs/frameworks/laravel.html
MIT License
319 stars 63 forks source link

The security token included in the request is invalid. #81

Closed arustguy closed 1 year ago

arustguy commented 1 year ago

I'm getting the below issue with the latest laravel and laravel-bridge latest.

Error executing "SendMessage" on "https://sqs.ap-southeast-1.amazonaws.com/{id}/testing-queue"; AWS HTTP error: Client error: `POST https://sqs.ap-southeast-1.amazonaws.com/{id}/testing-queue` resulted in a `403 Forbidden` response:
<?xml version="1.0"?><ErrorResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><Error><Type>Sender</Type><Code>I (truncated...)
InvalidClientTokenId (client): The security token included in the request is invalid. - <?xml version="1.0"?><ErrorResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><Error><Type>Sender</Type><Code>InvalidClientTokenId</Code><Message>The security token included in the request is invalid.</Message><Detail/></Error><RequestId>{request_id}</RequestId></ErrorResponse>

Anyone having issue like me?

My IAM has full administrator access and my testing repo looks exactly like the https://github.com/brefphp/examples/tree/master/Laravel/queues except mine is using the latest laravel and bref latest.

Thanks