Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

  1. Get the Magnolia S3 Connector:

    Code Block
    <dependency>
      <groupId>info.magnolia.amazon</groupId>
      <artifactId>amazon-s3-connector-module</artifactId>
      <version>1.2.1</version>
    </dependency> 
    <dependency>
      <groupId>info.magnolia.dam</groupId>
      <artifactId>magnolia-dam-external-app</artifactId>
      <version>2.3.2</version>
    </dependency>
  2. Get the code:

    Code Block
    git clone https://github.com/elohmrow/s3.git
  3. Build the code:

    Code Block
    ~/Desktop/REWE/__DAY__TWO__/daytwo/light_modules\-> cd s3/action/
    ~/Desktop/REWE/__DAY__TWO__/daytwo/light_modules/s3/action (master)\-> mvn clean install
  4. Find the resultant jar file:

    Code Block
    ~/Desktop/REWE/__DAY__TWO__/daytwo/light_modules/s3/action (master)\-> ff .jar
    ... running [find . "*.jar*" 2>/dev/null]
    ./target/action-1.0-SNAPSHOT.jar
    ~/Desktop/REWE/__DAY__TWO__/daytwo/light_modules/s3/action (master)\->
  5. Move the jar file to your WEB-INF/lib and restart Magnolia to install the custom action.  For example:

    Code Block
    ~/Desktop/REWE/__DAY__TWO__/daytwo/light_modules/s3/action (master)\-> mv target/action-1.0-SNAPSHOT.jar ~/Users/bandersen/Desktop/REWE/__DAY__TWO__/daytwo/daytwo-webapp/target/war/work/info.magnolia.eebundle/magnolia-enterprise-pro-webappdaytwo-webapp-1.0-SNAPSHOT/WEB-INF/lib/
  6. Add your Amazon access key and secret access key in /modules/amazon-s3-connector-module/config
  7. yzUpload an Asset the normal way, then log in to S3 Console to see if it is there (and/or refresh the S3 app within Magnolia)


Page Turner
button-linkstrue