Intro
- The aws-s3-synch is a nodejs wrapper which is great for synching local folder/files to s3 bucket folder and vice versa.
- Major use cases include automation of deployment of static websites or uploading local folder(s) to Amazon s3.
- Facilitates simulation of actions (without actually performing) by tweaking certain parameters.
Installation
- Install and configure s3cmd
npm install aws-s3-synch
Usage
synchToS3
//include respective librariesvar awsSynch = ;var path = ; awsSynch;
synchFromS3
awsSynch;
Example content of files.exclude
.DS_Store
*.gz
Note: Its not supposed to work in browser. Not a client side library.