How to replicate REPLICA object to a destination bucket?

0

Hi, I am trying to replicate objects that where replicated from a different bucket to another new bucket. I know that I can replicate to multiple buckets from one source bucket. But can this be done like a chain relication?

I have done some research and I have only found this AWS documentation https://docs.aws.amazon.com/AmazonS3/latest/userguide/setting-repl-config-perm-overview.html#receiving-replicated-objects. However, it does not work.

My Scenario

I have Bucket-1, Bucket-2 and Bucket-3.

Bucket-1 is in a different AWS Account. The others are in the same account but different Regions.

When uploading an object to Bucket-1, it gets replicated to Bucket-2 correctly.

I've created the Replication rule on Bucket-2 to replicate to Bucket-3 and it works for direct uploads to this bucket. However, replicated objects does not get replicated to Bucket-3.

I've followed the steps listed in the linked document, which states to add the following generated policy to the destination Bucket Policy (Bucket-3)

{
    "Sid": "S3PolicyStmt-DO-NOT-MODIFY",
    "Effect": "Allow",
    "Principal": {
        "AWS": "arn:aws:iam::AWS-ACCOUNT:root"
    },
    "Action": [
        "s3:GetBucketVersioning",
        "s3:PutBucketVersioning",
        "s3:ReplicateObject",
        "s3:ReplicateDelete"
    ],
    "Resource": [
        "arn:aws:s3:::Bucket-3",
        "arn:aws:s3:::Bucket-3/*"
    ]
}
Hash
已提问 1 年前396 查看次数
1 回答
0
已接受的回答

Replicate objects are not replicated to another bucket. See: What isn't replicated with replication configurations?.

Objects in the source bucket that are replicas that were created by another replication rule. For example, suppose you configure replication where bucket A is the source and bucket B is the destination. Now suppose that you add another replication configuration where bucket B is the source and bucket C is the destination. In this case, objects in bucket B that are replicas of objects in bucket A are not replicated to bucket C.

To replicate objects that are replicas, use Batch Replication. Learn more about configuring Batch Replication at Replicate existing objects.
profile pictureAWS
专家
kentrad
已回答 1 年前
profile pictureAWS
专家
已审核 1 年前
  • Thank you.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则