skip to Main Content

I want to copy the S3 bucket object to a different account, but the requirement can’t use the Bucket policy,
then is it possible to copy content from one bucket to another without using the bucket policy?

2

Answers


  1. Chosen as BEST ANSWER

    install AWS CLI, run AWS configure set source bucket credentials as default and, visit https://github.com/Shi191099/S3-Copy-old-data-without-Policy.git


  2. You cannot use native S3 object replication between different accounts without using a bucket policy. As stated in the permissions documentation:

    When the source and destination buckets aren’t owned by the same accounts, the owner of the destination bucket must also add a bucket policy to grant the owner of the source bucket permissions to perform replication actions

    You could write a custom application that uses IAM roles to replicate objects, but this will likely be quite involved as you’ll need to track the state of the bucket and all of the objects written to it.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search