Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

forefront's avatar

Cannot Deploy

Hi Guys,

I am trying to deploy and it is now not working out the blue this is the error I am getting seems to be related to the database.

Hook: migrate --force Executed At: 2021-03-30T15:10:26+0000 (27 seconds ago) Logs: { "message": "Credentials must be an instance of Aws\Credentials\CredentialsInterface, an associative array that contains "key", "secret", and an optional "token" key-value pairs, a credentials provider function, or false.", "context": { "exception": { "class": "InvalidArgumentException", "message": "Credentials must be an instance of Aws\Credentials\CredentialsInterface, an associative array that contains "key", "secret", and an optional "token" key-value pairs, a credentials provider function, or false.", "code": 0, "file": "/var/task/vendor/aws/aws-sdk-php/src/ClientResolver.php:464" }, "aws_request_id": "e3768b0d-1c73-499a-8dc2-631aa9d9d39b" }, "level": 400, "level_name": "ERROR",

I have updated composer in case it was out of date and that hasn't seemed to fix it.

Thanks

0 likes
6 replies
forefront's avatar

We do use s3.

I have checked and there aren't any EC2 instances in AWS is that correct?

SilenceBringer's avatar

@forefront looks like you init s3 connection somewhere in __construct of any of you classes, and it can't connect due to wrong credentials structure. Did you change something in your configs/filesystems.php in s3 section?

forefront's avatar

Yeah, unfortunately, I haven't changed anything it just stopped working... Is it worth redoing the access token in the team settings and redeploying?

Poseiden's avatar

Sorry to resurrect an old thread but did you ever get to the bottom of this? (if you remember!). A solid Laravel 10 application of mine has suddenly started giving this error - no idea why.

Please or to participate in this conversation.