Skip to main content

AWS S3: CROSS REGION REPLICATION

Cross-region replication is a bucket-level configuration that enables automatic, asynchronous copying of objects across buckets in different AWS Regions.It helps to replicate data of one bucket with another bucket in another region.For cross region replication to takes place versioning should be enabled in both buckets.Consider we have a bucket named mytestbuck333 on Us West(Oregon) region.Now we will create another bucket named new-bucket333 in Asia Pacific(Mumbai) region with versioning enabled.


Now go inside bucket mytestbuck333.From Management > Replication > add rule.Here we can select weather we want to replicate all contents of bucket or a pericular object.Select as per our need.Here we are selecting whole bucket.Then click next. Here select the name of bucket to which we want to replicate and click next.






Now select IAM role.As we have not created any role select create new role and click next and then save.



Now go inside our new bucket and check.We can see that no contents is replicated.The cross region replication only replicates entry of new objects.It won't replicate older objects.
Now go to our old bucket mytestbuck333 and upload a new file named mysql.
Now go to our new bucket new-bucket333 and check.We can see that the new file we uploaded on our old bucket is replicated over here.This is how cross region replication works.