For Amazon S3 replication we have 2 types:
CRR Cross Region Replication (CRR)
SRR Same Region Replication
buckets can be in different AWS accounts
uses case :
CRR compliance lower latency access replication across accounts
SRR log aggregation , live replication between production and test accounts
only new object are replicated
replicate existing object using S3 batch replication
Example of Amazon S3 replication :
We create 2 buckets : mibucketreplication and mibucketsource
![](https://juliovaldiviamarin.com/wp-content/uploads/2024/07/image-1024x241.png)
Click on management to see replication rules
![](https://juliovaldiviamarin.com/wp-content/uploads/2024/07/image-1-1024x499.png)
Click on Create replication rule, put name of the rule , and for this example we choose the rule scope for all the objects
must enabled versioning in source and destination
copying is asynchronous must give proper IAM permission to s3
![](https://juliovaldiviamarin.com/wp-content/uploads/2024/07/image-2.png)
Click on Browse S3 to choose the bucket replication
![](https://juliovaldiviamarin.com/wp-content/uploads/2024/07/image-3.png)
Choose the bucket replication and click on Choose Path
![](https://juliovaldiviamarin.com/wp-content/uploads/2024/07/image-4-1024x256.png)
Click Save
![](https://juliovaldiviamarin.com/wp-content/uploads/2024/07/image-5.png)
upload a file on the bucket source
![](https://juliovaldiviamarin.com/wp-content/uploads/2024/07/image-6-1024x273.png)
choose a file and click on upload
![](https://juliovaldiviamarin.com/wp-content/uploads/2024/07/image-7.png)
Then we change to other replication bucket to see if the file is replicated
![](https://juliovaldiviamarin.com/wp-content/uploads/2024/07/image-8-1024x277.png)
delete
for delete operations :
can replicate delete markers from source to target
deletions with a version ID are not replicated
there is no chaining of replication
![](https://juliovaldiviamarin.com/wp-content/uploads/2024/07/image-9.png)
here we can see the deletion mark
![](https://juliovaldiviamarin.com/wp-content/uploads/2024/07/image-10-1024x322.png)
Links :
Leave a Reply
You must be logged in to post a comment.