Skip to content

dudewheresmycode/aws-s3-sign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#aws-s3-sign

Generates a policy and signature for posting files via CORS to Amazon S3.

Install

npm i --save aws-s3-sign

Usage

var sign = require('aws-s3-sign');

var s3Signature = sign({
  awsSecret:'MY_AWS_SECRET_KEY',
  bucket:'my-bucket',
  acl:'private',
  key:'path/to/key.txt',
  expire: 300, //seconds till expire
  contentType:'text/plain'
});

console.log(s3Signature);

About

CORS upload signature for Amazon S3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published