I have a single S3 object (file) and multiple Lambdas that have read/write access to it. Most operations are read only, but when writing to the file what I would like to do is something like this:
- Lock myfile.json
GetObject("myfile.json")- Edit file contents
PutObject("myfile.json")- Unlock myfile.json
The goal is to ensure that a competing Lambda cannot also call PutObject() while it is being updated.
Is this possible with S3?