I have two s3 account credential like, and I have assigned like this
var AWS = require('aws-sdk'); var AWS1 = require('aws-sdk');
AWS.config.update({ accessKeyId: 'abc', secretAccessKey: 'abcd' });
AWS1.config.update({ accessKeyId: 'xyz', secretAccessKey: 'xxx' });
I need to copy the selected buckets or files from one s3 account to another s3 account by nodejs
I found a cmd like this: s3cmd cp s3://acc1_bucket/folder/ s3://acc2_bucket/folder --recursive but I'm not clear with this, can any one help me?
via Logesh
No comments:
Post a Comment