This extension enables the use of Amazon S3 as file system for the Yii 2 extension yii2-media.
Add the following to your application configuration. Both awsAccessKey
and awsAccessSecret
can also be set in config/params.php
or omitted in which case the default AWS configuration will be loaded.
<?php
return [
'modules' => [
'media-s3' => [
'bucket' => 'your-bucket',
'region' => 'your-region',
'awsAccessKey' => 'your-key',
'awsAccessSecret' => 'your-secret',
],
],
];