I want to upload 20 million images to S3 bucket. I am using the following code.
s3.putObject(objectParams, (err, data) => {
if (err) {
reject(err);
} else {
resolve(data);
}
I have cloudinary image URLs that I am using and I want to upload those images to S3.
What is the fastest way to do that? I am currently running this code sequentially but it's gonna take a lot of time. Can I run it faster using rest api?
Can anyone please help?