The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.
Based on the Aws\S3\S3Client::factory() and Aws\S3\S3Client::createSignature() methods it looks like AWS can switch to V4 based on the region provided but it can be done only on the bucket level where it's too late.
Adding region on the storage level works like a charm (yii2tech\filestorage\amazon\Storage::createAmazonS3()).
There is the problem with authorizing AWS user on the region using V4 signature.
I'm using this configuration:
This is the AWS response on authorization:
Based on the
Aws\S3\S3Client::factory()
andAws\S3\S3Client::createSignature()
methods it looks like AWS can switch to V4 based on the region provided but it can be done only on the bucket level where it's too late.Adding
region
on the storage level works like a charm (yii2tech\filestorage\amazon\Storage::createAmazonS3()
).Packages versions: