Amazon S3 adds conditional write functionality to copy operations

Amazon S3 Conditional Write Functionality for Copy Operations
Amazon S3 now supports conditional write functionality for copy operations, allowing you to verify if an object exists or has been modified before copying it. This feature helps prevent multiple concurrent writers from unintentionally overwriting the same object.
You can perform conditional copy operations using the HTTP if-none-match header to verify object existence or the HTTP if-match header with ETag to validate the object’s content. Additionally, you can enforce conditional copy operations using the s3:if-match and s3:if-none-match condition keys in your S3 bucket policies.
What to do
- Use the if-none-matchorif-matchheaders in your S3 CopyObject requests.
- Update your S3 bucket policies to include the s3:if-matchands3:if-none-matchcondition keys.
- Refer to the S3 User Guide for more information on conditional operations.
Source: AWS release notes
If you need further guidance on AWS, our experts are available at AWS@westloop.io. You may also reach us by submitting the Contact Us form.



