Jeff Gardner
Jeff Gardner

Reputation: 311

Does s3:ReducedRedundancyLostObject mean one version was lost, or the whole object?

I am working on a configuration for a S3 bucket where objects are stored as Reduced Redundancy Storage and versioning is enabled. I want to trigger a lambda function on the s3:ReducedRedundancyLostObject event so I can recreate the object, but I am unsure whether this event means that the whole object was lost, or just one version. My assumption is that it is just one version, but I haven't been able to find confirmation in the documentation or elsewhere, and I don't know if there is a way to adequately test it.

Upvotes: 1

Views: 1056

Answers (2)

Ashan
Ashan

Reputation: 19728

The s3:ReducedRedundancyLostObject event is triggered when Amazon S3 detects that it has lost all replicas of an object and can no longer service requests for that object.

Note: AWS S3 Reduced Redundancy cost recently became higher than Standard Storage which makes using Reduced Redundancy unreasonable.

e.g In US East N. Virginia

  • Standard Storage : $0.023 per GB (First 50 TB / month)
  • Reduced Redundancy Storage : $0.0240 per GB (First 1 TB / month) and $0.0236 per GB (Next 49 TB / month)

Compare the price of Standard Storage & Reduced Redundancy Storage.

Upvotes: 2

Kush Vyas
Kush Vyas

Reputation: 6079

As per AWS Documentation :

You might want to enable versioning to protect yourself from unintended overwrites and deletions or to archive objects so that you can retrieve previous versions of them.

and

This functionality prevents you from accidentally overwriting or deleting objects and affords you the opportunity to retrieve a previous version of an object.

Object Versioning Is Common across S3 thus inherently it would follow this , thus I think that the loss of object would of that version only.

Upvotes: 0

Related Questions