Here is the basic instructions -
-
Install Node.js
sudo apt-get install nodejssudo apt-get install npm -
Install AWS JS SDK
npm install aws-sdk -
Install Request
npm install request -
Create a file config.json - copy the code.
-
Create your JS file filename.js - copy the code.
-
Navigate to the folder and type
node filename.js
Dont forget to change the values of aws access keys, bucketname etc.
Credit: Stack Overflow