[SOLVED-ish] Laravel 11, PHP 8.3, Cant upload files to S3 #1817
-
Hi i'm using Laravel 11, and PHP 8.3 Error from CloudWatch
I run commands (inside docker container) to deploy to aws
Steps to reproduce.
serverless.yml
config/filesystems.php
routes/web.php
.env
Aditional files that might be usefulDockerfile (added bref section)
docker-compose.yml
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
As suggested in the previous discussion, don't set AWS credentials when creating your S3Client. Also don't set In short: don't set AWS credentials at all, let the AWS SDK use the credentials automatically provided by Lambda, and avoid messing with this. This should work then. |
Beta Was this translation helpful? Give feedback.
-
[Hacky Solution] Had to do the same for queue (sqs) and cache (dynamodb) credentials. |
Beta Was this translation helpful? Give feedback.
[Hacky Solution]
I'm creating a custom s3 disk, where it uses my aws credentials, instead of Bref credentials injected into lambda.
Ideally it would be better to work with bref credentials, but i was short of time, so i'm using this hacky solution.
Had to do the same for queue (sqs) and cache (dynamodb) credentials.
My session was using database, but i believe if i was using dynamodb i would have to do the same thing