Example of how to use the AWS SDK v3 S3 client to upload files to S3 in parallel or sequence execution.
- Run
npm install
to install the dependencies. - Set the
BUCKET
environment variable to a random bucket name. - Run
node bucket-create.js
to create the bucket. - After you run this experiment you can run
node bucket-delete.js
to delete the bucket.
Using Promise.all
to upload files in parallel.
Screencast.from.22-03-23.09.55.44.webm
Using while
loop to upload files in parallel.