AWS Certified Solutions Architect - Professional 2020

Sign Up Free or Log In to participate!

S3 delete objectes in replicated s3 bucket

If I want to delete a file and It should delete in all replicated s3 buckets. what should I do to overcome this limitation?

1 Answers

Hi Kiran,

At first I wasn’t sure what you were asking, but think I understand now.     You have a bucket in one region and you have setup that bucket to replicate to another region.  You delete an object in the first region but it does not delete in the replica region.  Correct?

By default, this is desired behavior as you’d want your replica to serve as a backup in case you accidentally deleted stuff in your primary bucket.   However, looks like you might be able to override this with a custom replication config:  https://docs.aws.amazon.com/AmazonS3/latest/dev/crr-add-config.html#crr-config-example-configs
You could always setup a Lambda function to perform the delete on the replica bucket when a delete happens on the original bucket.–Scott
kiran kumar

thanks bro

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?