This is a sample to copy a file between two S3 buckets on four different ways with AWS SDK for JavaScript.
$ npm install
$ npm run setup
# and Edit .env file
# Use CopyObject
$ npm run CopyObject
# Use UploadPartCopy
$ npm run UploadPartCopy
# Use GetObject and PutObject
$ npm run GetAndPutObject
# Use GetObject and UploadPart
$ npm run GetObjectAndUploadPart
- GetObject - Amazon Simple Storage Service
- HeadObject - Amazon Simple Storage Service
- PutObject - Amazon Simple Storage Service
- CopyObject - Amazon Simple Storage Service
- CreateMultipartUpload - Amazon Simple Storage Service
- UploadPartCopy - Amazon Simple Storage Service
- CompleteMultipartUpload - Amazon Simple Storage Service