Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS S3 replication without versioning

I have enabled AWS S3 replication in an account and I want to replicate the same S3 data to another account and it all works fine. But I don't want to use S3 versioning because of its additional cost.

So is there any other way to accommodate this scenario?

like image 398
Dusky Dood Avatar asked Sep 02 '26 00:09

Dusky Dood


1 Answers

The automated Same Region Replication(SRR) and Cross Region Replication(CRR) requires versioning to be activated due to the way that data is replicated between S3 buckets. For example, a new version of an object might be uploaded while a bucket is still being replicated, which can lead to problems without having separate versions.

If you do not wish to retain other versions, you can configure Amazon S3 Lifecycle Rules to expire (delete) older versions.

An alternative method would be to run the AWS CLI aws s3 sync command at regular intervals to copy the data between buckets. This command would need to be run on an Amazon EC2 instance or even your own computer. It could be triggered by a cron schedule (Linux) or a Schedule Task (Windows).

like image 115
John Rotenstein Avatar answered Sep 05 '26 05:09

John Rotenstein



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!