Unexplained error setting up policy for S3 Cross-Region Replication

0

Hi, I'm following the instructions on this page for setting up the roles for CRR: https://docs.aws.amazon.com/AmazonS3/latest/dev/setting-repl-config-perm-overview.html

I have a role (we'll call it ReplRole) with the exact trust policy listed on that page, and an access policy that looks like this:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:GetReplicationConfiguration",
                "s3:ListBucket",
                "s3:GetObjectVersion",
                "s3:GetObjectVersionAcl",
                "s3:GetObjectVersionTagging",
                "s3:ReplicateObject",
                "s3:ReplicateDelete",
                "s3:ReplicateTags"
            ],
            "Resource": [
                "arn:aws:s3:::our-s3-bucket-prefix-*",
                "arn:aws:s3:::our-s3-bucket-prefix-*/*"
            ]
        }
    ]
}

It doesn't look exactly like the policy provided, but the main difference is that I use wildcards for the resources specified. I also group the actions together. But if I understand IAM access policies correctly, this should suffice for the purpose.

S3 allows me to create the Cross-Region Replication rule, but then I get this error message:
The CRR rule is saved, but it might not work.
There was an error with setting up the IAM policy for the selected IAM role GobsCrossRegionReplicationRole. Ensure that you have set up the correct policy, or select another role.

What did I do wrong?

jamp
已提問 5 年前檢視次數 279 次
1 個回答
0

What I found was that the cross-region replication was actually working, despite the error message. When I checked back the next morning, the objects were successfully replicated to the backup bucket.

jamp
已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南