Skip to content

monstercat/s3-zipper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S3 Zipper

A simple web service to take create a streaming zip from a list of provided s3 bucket items.

Preparing a Stream

POST to / with the following JSON:

{
  bucket: 's3-bucket-name',
  filename: 'name-of-desired.zip',
  items: [{
    filename: 'desired-name-of-file.example',
    key: 's3-object-key'
  }]
}

It will return a JSON string like the following:

{
  id: 'idofstream',
  url: 'http://example.com/idofstream'
}

Downloading Zip Stream

Call the returned URL to starting streaming the zip.

Authorization

An optional AUTH_PASSWORD environment variable can be set so that all requests require a basic authorization password

Running

PORT=8080 \
DEBUG='s3-zipper' \
AWS_ACCESS_KEY_ID=... \
AWS_SECRET_ACCESS_KEY=... \
AUTH_PASSWORD= optional password ... \
node index.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published