Extended S3 connector
The Hybrid Assets module adds a number of actions to the Assets app for transferring content to external storage and returning hybrid asset content to be stored in Magnolia.
If your content is already stored outside of Magnolia, you can also create a hybrid asset linked to it.
Open the Assets app and select a folder, the Hybrid Assets module adds a new action:
The first field - "Content" - is for entering the storage URL of your new hybrid asset. You can type in the storage URL yourself, but clicking on the Select button will bring up an asset chooser:
You can navigate through the S3 buckets and directories and pick the content you want to link to your hybrid asset and its storage URL will be entered into the Content field. |
The AWS credentials are configured in the Passwords app.
The Amazon S3 Connector uses only one set of AWS credentials to access S3. If you have more than one external content stores, or have multiple AWS credentials or want to control what content a user sees in the S3 asset chooser, you can use the Extended Amazon S3 Connector to manage different AWS credentials and associate users with each defined credential.
Maven is the easiest way to add the Extended Amazon S3 Connector to your bundle:
<dependency>
<groupId>info.magnolia.s3-extension</groupId>
<artifactId>amazon-s3-connector-extension-module</artifactId>
<version>1.2.9</version>
</dependency>
AWS credentials are configured in the Configuration > /modules/amazon-s3-connector
.
Each set of AWS credentials can be configured with the following properties:
Property | Description | ||
---|---|---|---|
|
required Must be
|
||
|
required A
|
||
|
optional, default is If |
||
|
required The access key for AWS S3 or compatible storage. |
||
|
required The secret key for AWS S3 or compatible storage. |
||
|
optional, uses the AWS S3 or compatible default region The region. |
||
|
optional, required if using AWS S3 or compatible storage The endpoint for access S3 or compatible storage. |