3 Answers
- Newest
- Most votes
- Most comments
0
S3 Natively does not have any conditions that would satisfy this for the PutObject but what you could consider is making a HeadObject request first and if the object does not exist (404 - requires the writer to have s3:ListBucket permission) then continue with the PutObject.
0
Set an object lock https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html
answered 2 years ago
0
Now it's a released feature of S3: https://aws.amazon.com/about-aws/whats-new/2024/08/amazon-s3-conditional-writes/
answered a year ago

This is a check-then-act race condition.