1.0.16 • Published 5 years ago
s3-rename v1.0.16
S3 Object Rename
Simple method to rename S3 object.
Usage
const AWS = require('aws-sdk');
const rename = require('s3-rename');
var s3 = new AWS.S3();
rename.s3_rename(s3, 'name-of-the-bucket', 'name-of-the-old-key', 'name-of-the-new-key');
where name-of-the-old-key
is the name of the S3 object which name you want to change and name-of-the-new-key
is the new name of the object.