skip to Main Content

AWS SDK v2: While copying files on S3: TypeError: Cannot read property 'appendToUserAgent' of undefined – Amazon Web Sevices

I'm calling the copyObject method of aws-sdk v2 's S3 class: const s3 = new AWS.S3({...s3Config}); // attempt 1 let copyObject = { Bucket: 'my-bucket-name', CopySource: `s3://my-bucket-name/my/file/path`, Key: `/my/destination/path`, } await s3.copyObject(copyObj); // attempt 2 copyObject = { Bucket: 'my-bucket-name',…

VIEW QUESTION
Back To Top
Search