0.0.1 • Published 5 years ago

s3-archive v0.0.1

Weekly downloads
25
License
ISC
Repository
-
Last release
5 years ago

S3 Archive

Takes source files from S3 and uploads a zip or tar of those files to S3.

Example Usage:

const AWS = require("aws-sdk");
const s3Archive = require("s3-archive");

const s3 = new AWS.S3();

const files = [
  { Bucket: "source-bucket", Key: "index.html" },
  { Bucket: "source-bucket", Key: "js/main.js" },
  { Bucket: "source-bucket", Key: "css/main.css" },
  { Bucket: "source-bucket", Key: "img/logo.png" }
];

s3Archive(s3, files, "destination-bucket", "archive.zip");