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
.
See S3 external content store properties for details.
S3 external content store
The Hybrid Assets module includes an S3 external content store, which also works with S3 compatible storage: info.magnolia.dam.hybrid.store.S3AssetStore
.
The following are configurable properties of an S3 external content store:
Property | Description | ||
---|---|---|---|
|
required Must be |
||
|
required The name of the external content store. |
||
|
required Set to |
||
|
optional A brief description of the external content store. |
||
|
required A Java regular expression, the external content stores whose referencePattern match the storage URL of a hybrid asset may be used to content. |
||
|
optional The buffering policy when reading or writing content to S3. Valid values:
|
||
|
optional The maximum buffer size in bytes. The default is |
||
|
optional If If
|
||
|
optional The maximum time in milliseconds a cached S3 will be kept. Connections older than The default value is |