Skip to content
Grunt module that generates a CommonJS module for Amazon Web Service S3 credentials.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib
tasks
.gitignore
Gruntfile.js
README.md
package.json

README.md

grunt-commonjs-aws-s3

Grunt module that generates Amazon Web Service policy and signature for S3 into a CommonJS module.

Getting Started

npm install grunt-commonjs-aws-s3

Declare where the generated file will be going:

's3-generate': {
  target: '/lib/s3.js'
}

Then either add the following to your environment variables or in Grunt:

Environment variables:

  • AWS_KEY
  • AWS_SECRET
  • AWS_BUCKET

Extra grunt options if not using environment variables:

's3-generate': {
  options: {
    key: '',
    secret: '',
    bucket: ''
  }
}

Other information

This module is intended as an example; there are some settings that might need to be changed (so please fork this project). By default this module saves an object into a bucket for 10 years.

Something went wrong with that request. Please try again.