Skip to content

Commit 5a93f26

Browse files
authored
Add policy for s3 replication (#111)
for s3 replication, we need additional policy to assume role. ref: https://docs.aws.amazon.com/AmazonS3/latest/userguide/setting-repl-config-perm-overview.html#receiving-replicated-objects
1 parent 4f9e1da commit 5a93f26

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

config/iam/recommended-inline-policy

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"Version": "2012-10-17",
3+
"Statement": [
4+
{
5+
"Sid": "S3AllPermission",
6+
"Effect": "Allow",
7+
"Action": [
8+
"s3:*",
9+
"s3-object-lambda:*"
10+
],
11+
"Resource": "*"
12+
},
13+
{
14+
"Sid": "S3ReplicationPassRole",
15+
"Condition": {
16+
"StringEquals": {
17+
"iam:PassedToService": "s3.amazonaws.com"
18+
}
19+
},
20+
"Action": "iam:PassRole",
21+
"Resource": "*",
22+
"Effect": "Allow"
23+
}
24+
]
25+
}

0 commit comments

Comments
 (0)