Copy large files between buckets (AWS S3) with NodeJS (v8.6.0).
AWS SDK Reference: http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html
Based on: https://gist.github.com/joshbedo/47bab20d47c1754626b5
For this function, we used the method s3.uploadPartCopy (if the source object is greater than 5 GB): http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#uploadPartCopy-property
However, if the source object is lesser than 5 GB, the method s3.copyObject can be used: http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#copyObject-property
aws-sdk-js: https://github.com/aws/aws-sdk-js
winston: https://github.com/winstonjs/winston
aws-sdk-mock: https://github.com/dwyl/aws-sdk-mock