I have two sets of aws credentials and two buckets s3://foo
and s3://bar
how can I recursively move the contents of foo to bar?
I have tried rclone but this downloads the files first before uploading.
And aws s3 copy only works with one set of aws credentials.
Any other ideas?
2
Answers
You could use Amazon S3 Batch Replication if you are Ok enabling versioning on the buckets.
This solution uses Python Boto3 in a script to recursively copy objects from one S3 bucket to another in a different account.