Created
July 1, 2021 11:02
-
-
Save asvignesh/2e89654f98e87682e902d82c620775b3 to your computer and use it in GitHub Desktop.
S3 bucket replication
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version":"2012-10-17", | |
"Statement":[ | |
{ | |
"Effect":"Allow", | |
"Action":[ | |
"s3:GetObjectVersionForReplication", | |
"s3:GetObjectVersionAcl", | |
"s3:GetObjectVersionTagging" | |
], | |
"Resource":[ | |
"arn:aws:s3:::source-bucket/*" | |
] | |
}, | |
{ | |
"Effect":"Allow", | |
"Action":[ | |
"s3:ListBucket", | |
"s3:GetReplicationConfiguration" | |
], | |
"Resource":[ | |
"arn:aws:s3:::source-bucket" | |
] | |
}, | |
{ | |
"Effect":"Allow", | |
"Action":[ | |
"s3:ReplicateObject", | |
"s3:ReplicateDelete", | |
"s3:ReplicateTags" | |
], | |
"Resource":"arn:aws:s3:::destination-bucket/*" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment