Skip to content

Instantly share code, notes, and snippets.

@jlouros
jlouros / aws.upload-folder-to-s3.js
Last active Jul 6, 2020
Upload folder to S3 (Node.JS)
View aws.upload-folder-to-s3.js
const AWS = require("aws-sdk"); // from AWS SDK
const fs = require("fs"); // from node.js
const path = require("path"); // from node.js
// configuration
const config = {
s3BucketName: 'your.s3.bucket.name',
folderPath: '../dist' // path relative script's location
};
You can’t perform that action at this time.