View Code? Open in Web Editor
NEW
This package will contains the scripts which will help you to upload the any number of files to your S3 bucket.
JavaScript 96.03%
Shell 3.97%
s3-uploader's Introduction
S3 Uploader is a script to upload your large chunk of files on S3 bucket
Features
- Upload the bulk files on S3 Bucket.
- Upload the exact file structure to the S3.
- Upload files in your chosen folder on S3.
Prerequisites
- Node.js should be installed
- NPM should be installed
- You should have an AWS account with the Access key, Secret key and S3 bucket should be already created.
- You have a basic idea about scripting in Node.js
How to use it?
- Clone the repository.
- Open the Terminal and navigate to the cloned repository.
- Copy the content of .env.example file into a new file which is .env and update correct details in .env.
- Run
npm install
- Run
node scripts/upload.js
- Follow the instructions visible to Terminal.
- See the Terminal for the logs, or check the logs/error.log or logs/info.log file for logs
TODO:
- Provide the URL of each file in logs.
- Add a feature to check if the uploaded URL is valid and it's working properly and generate the logs based on that.
- Add support to export this script as a node js global module.
s3-uploader's People
Contributors
Watchers