ReviewOS

also looking at this

meemalabs/laravel-text-to-speech

Add aws session token

#39
Merged yurik94 wants to merge add_aws_session_token into main
2 files +2 -1
9 days ago

Hello, Many thanks for this OS package!

I'm using it in a project deployed on AWS Lambda (Bref + Serverless framework), locally with Sail it worked but when deploying it on AWS I was getting:

Aws\Polly\Exception\PollyException
Error executing "SynthesizeSpeech" on "https://polly.eu-central-1.amazonaws.com/v1/speech"; AWS HTTP error: Client error: `POST https://polly.eu-central-1.amazonaws.com/v1/speech` resulted in a `403 Forbidden` response:
{"message":"The security token included in the request is invalid."}
 UnrecognizedClientException (client): The security token included in the request is invalid. - {"message":"The security token included in the request is invalid."}

I've added the AWS_SESSION_TOKEN config field which allows the AWS SDK to work even when using an assumed IAM role.

2 changed files on the files tab, with 0 review threads.

Sign in to comment on this pull request.