You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I configured [AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY] in .env, and S3Client can be called normally in Windows, but it prompts in Linux: vendor/aws/aws-sdk-php/src/Auth/AuthSchemeResolver.php",85,"Could not resolve an authentication scheme: Signature V4 requires AWS credentials for request signing, I don’t understand why.
Use the following method to work properly:
use Aws\S3\S3Client;
use Aws\Credentials\Credentials;
$credentials = new Credentials('your-access-key-id', 'your-secret-access-key');
$s3Client = new S3Client([
'version' => 'latest',
'region' => 'us-east-1',
'credentials' => $credentials,
]);
In addition, the published configuration file config/aws.php AWS_REGION should be AWS_DEFAULT_REGION in laravel
Regression Issue
Select this option if this issue appears to be a regression.
Expected Behavior
I hope the configuration reads correctly
Current Behavior
Now, except for the prompt, there is no other
Reproduction Steps
In Linux, it is bound to happen. The OS is AWS Linux 2023
Possible Solution
No response
Additional Information/Context
No response
SDK version used
3.342.4
Environment details (OS name and version, etc.)
Linux 6.1.129-138.220.amzn2023.x86_64
The text was updated successfully, but these errors were encountered:
Sorry to hear about the issues. Could you both provide me with a little more information on how you're providing AWS credentials to your application? I saw the example @jack20211101 provided above, but (correct me if I'm wrong) it looks like you're just providing an example of something that works for you right now.
Sorry to hear about the issues. Could you both provide me with a little more information on how you're providing AWS credentials to your application? I saw the example @jack20211101 provided above, but (correct me if I'm wrong) it looks like you're just providing an example of something that works for you right now.
Describe the bug
I configured [
AWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
] in.env
, and S3Client can be called normally in Windows, but it prompts in Linux:vendor/aws/aws-sdk-php/src/Auth/AuthSchemeResolver.php",85,"Could not resolve an authentication scheme: Signature V4 requires AWS credentials for request signing
, I don’t understand why.Use the following method to work properly:
In addition, the published configuration file
config/aws.php
AWS_REGION
should beAWS_DEFAULT_REGION
in laravelRegression Issue
Expected Behavior
I hope the configuration reads correctly
Current Behavior
Now, except for the prompt, there is no other
Reproduction Steps
In Linux, it is bound to happen. The OS is AWS Linux 2023
Possible Solution
No response
Additional Information/Context
No response
SDK version used
3.342.4
Environment details (OS name and version, etc.)
Linux 6.1.129-138.220.amzn2023.x86_64
The text was updated successfully, but these errors were encountered: