Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)

It was far to difficult to figure this out. It wasn't obvious to me and lots of explanations left out key details. I will answer this with the solution. Sorry if it seems obvious to you, but given how many searches and experiments it took me to do this, I think it is quite worthwhile to show others how to do it.

1 Answer

0 votes
by (44.4k points)
edited by

Explicitly show both the source and the destination regions.

$ aws s3 cp s3://my-source-bucket-in-us-west-2/ \

      s3://my-target-bucket-in-us-east-1/ \

      --recursive --source-region us-west-2 --region us-east-1

Or on Windows

> aws s3 cp s3://my-source-bucket-in-us-west-2/ ^

          s3://my-target-bucket-in-us-east-1/ ^

          --recursive --source-region us-west-2 --region us-east-1

Also, for more insights about S3 and other AWS skills, visit the AWS Course page. 

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
+1 vote
1 answer

Browse Categories

...