These steps describe how to install the S3 Connector to an instance of Alfresco Content Services, and how to
enable the S3MultipleBuckets subsystem sample.
The S3 Connector is packaged as an Alfresco Module Package (AMP) file.
Note
Ensure that you don't start Alfresco Content Services before installing the S3 Connector AMP.
-
Go to Hyland Community.
-
Download the
alfresco-s3-connector-4.0.x.ampfile. -
Use the Module Management Tool (MMT) to install the AMP into the repository WAR (
alfresco.war).For more information, see Using the Module Management Tool (MMT) and Installing an Alfresco Module Package.
-
Unzip the
alfresco-s3-connector-4.0.x.ampfile. -
Copy the three sample files and rename them by removing the
.sampleextension.The sample files are located under:
alfresco-s3-connector-4.0.x.amp/config/alfresco/extension/...They need to be copied to the relevant paths under the following folder:
$CATALINA_HOME/shared/classes/alfresco/extension/...-
Copy and rename
s3-multiple-buckets-context.xml.sampleto:s3-multiple-buckets-context.xml -
Copy and rename
subsystems/ContentStore/S3MultipleBuckets/S3MultipleBuckets/s3-mb-contentstore-context.xml.sampleto:subsystems/ContentStore/S3MultipleBuckets/S3MultipleBuckets/s3-mb-contentstore-context.xml -
Copy and rename
subsystems/ContentStore/S3MultipleBuckets/S3MultipleBuckets/s3-mb-contentstore.properties.sampleto:subsystems/ContentStore/S3MultipleBuckets/S3MultipleBuckets/s3-mb-contentstore.properties
-
-
Check that the configuration is set up correctly for your environment.
-
Check the S3 Connector properties for store 1 (for example,
connector.s3.*ors3.*)See
s3-mb-contentstore.propertiesfor the complete list.The minimum properties required are:
-Dconnector.s3.accessKey=${AWS_ACCESS_KEY_ID} -Dconnector.s3.secretKey=${AWS_SECRET_ACCESS_KEY} -Dconnector.s3.bucketName=${S3_BUCKET_NAME} -Dconnector.s3.bucketRegion=${S3_BUCKET_REGION} -
Check the S3 Connector properties for store 2 (for example,
connector.s3.store2.*ors3.store2.*)See
s3-mb-contentstore.propertiesfor the complete list..The minimum properties required are:
-Dconnector.s3.store2.bucketName=${S3_BUCKET2_NAME} -Dconnector.s3.store2.bucketRegion=${S3_BUCKET_REGION} -
Set S3 multiple buckets as the default file content store subsystem:
filecontentstore.subsystem.name=S3MultipleBuckets
-
-
Check that any other configuration is set up correctly for your environment and specifically check the multiple bucket config.
-
Start Alfresco Content Services.