0.1.2 • Published 9 years ago

multicolour-storage-s3 v0.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

multicolour-storage-S3

Build Status Coverage Status bitHound Score

S3 Storage provider plugin for Multicolour, upload files to and retrieve files from Amazon's S3 service.

You can login manually; like below, we don't recommend hardcoding values in scripts and highly recommend setting AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY in your environment instead.

// Configure our service.
const my_service = require("multicolour")
  // Configure the service core and scan for content. 
  .new_from_config_file_path("./config.js")
  .scan()

// Register the server plugin.
my_service.start.use(require("multicolour-storage-s3"))
  .request("storage")
    .login({
      accessKeyId: "",
      secretAccessKey: ""
    })

// Start the service.
my_service.start()

MIT License