Skip to content
No description or website provided.
PHP Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Add build package script Jun 27, 2016
LICENSE Initial commit Sep 14, 2015
README.rst Support IAM roles Aug 11, 2017
SwagMediaS3.php Check for autoload.php file Feb 8, 2018 Update to new plugin system Feb 1, 2017
composer.json Improve composer compatibility Feb 8, 2018
composer.lock Update composer.lock Feb 8, 2018
plugin.xml Improve composer compatibility Feb 8, 2018


Amazon S3 Adapter for Shopware

The Amazon S3 adapter allows you to manage your media files in shopware on an Amazon S3 account. In addition, you can use Amazon CloudFront for delivering your files.

Building a package

Just run ./


Download the plugin from the release page and enable it in shopware.


Update your config.php in your root directory and fill in your own values:

'cdn' => [
    'backend' => 's3',
    'adapters' => [
        's3' => [
            'type' => 's3',
            'mediaUrl' => 'YOUR_S3_OR_CLOUDFRONT_ENDPOINT',
            'key' => 'YOUR_AWS_KEY',
            'secret' => 'YOUR_AWS_SECRET',
            'region' => 'YOUR_S3_REGION',
            'bucket' => 'YOUR_S3_BUCKET_NAME',
            'prefix' => ''

Using IAM roles in EC2

To make use of your configured IAM roles, omit the array keys key and secret or leave them empty. The plugin will retrieve the credentials from the EC2 metadata service automatically.

Value explanation

type (required)
Adapter type. Do not change.
mediaUrl (required)

URL to access your media files. Usually your S3, CloudFront or custom domain endpoint


region (required)
The S3 region, e.g. eu-central-1
bucket (required)
Your S3 bucket name
Your Access Key ID
Your Secret Access Key
An optional path prefix for your media files
Sets the S3 endpoint specifically (e.g. non-AWS S3)
Allows setting options per file specific to Flysystem S3 Adapter


The MIT License (MIT). Please see License File for more information.

You can’t perform that action at this time.