Can I copy objects from one s3 bucket to another?

+1 vote
Can I copy objects from one s3 bucket to another using s3api.
Aug 23, 2019 in AWS by Nisha
432 views

2 answers to this question.

+1 vote

You can use something like this:

aws s3api copy-object --copy-source bucket1/test.txt --key test.txt --bucket bucket2

you can use the --copy-source flag for this purpose.

answered Aug 23, 2019 by Mihir
+1 vote
Hi,

We can use sync command to move objects from one bucket to another bucket.

aws s3 sync s3://ORIGINAL_BUCKET s3://NEW_BUCKET

Before that, we need to create a new S3 bucket and also verify the buckets by recursive command

aws s3 ls --recursive s3://ORIGINAL_BUCKET_NAME

aws s3 ls --recursive s3://NEW_BUCKET_NAME
answered Jan 27 by vivek
• 530 points

Related Questions In AWS

0 votes
1 answer

How can i copy tables from one database to other on AWS?

You can use AWS Data pipeline to ...READ MORE

answered Jul 5, 2018 in AWS by Priyaj
• 57,550 points
226 views
0 votes
1 answer
0 votes
0 answers

transfer the ownership of Amazon S3 objects from one AWS account to another

I want to transfer the ownership of ...READ MORE

Oct 9, 2019 in AWS by Hannah
• 18,060 points

closed Oct 9, 2019 by Kalgi 133 views
0 votes
1 answer
+1 vote
2 answers
0 votes
1 answer