Follow | Amazon S3 Object LockAmazon S3 Object Lock OverviewAmazon S3 Object Lock is a feature for securing data in Amazon S3. It helps you enforce a Write Once, Read Many (WORM) model to prevent accidental or malicious deletion or modification of file versions in Amazon S3. Object Lock protects a specific version of a file. It does not prevent you from uploading a new version of the file, or Amazon S3 from creating a delete marker for the current version. This is particularly useful for industries with strict data retention requirements, such as financial services, healthcare, and compliance-focused organizations. Here are some key points about Amazon S3 Object Lock:
Object Lock is commonly used for scenarios where data integrity and retention are critical, such as maintaining financial records, preserving medical records, or adhering to regulatory requirements. How to enable Object Lock for a bucketBefore you can lock any objects, you need to configure a bucket to use Amazon S3 Object Lock. You can enable Object Lock when creating a new bucket or for an existing bucket. Once Object Lock is enabled, you can lock objects in that bucket using retention periods, legal holds, or both. Please note:
To enable Object Lock for an existing bucket:
To create a bucket with Object Lock enabled:
How to configure default retention settingsEnabling Object Lock allows the bucket to store protected file versions. This setting alone does not automatically apply retention to files that you add to the bucket. If you wish to automatically protect new file versions added to the bucket, you can set up a default retention period. The default settings apply to every new file version unless you explicitly specify a different retention mode and period when uploading the file. To configure default retention settings:
Viewing the lock information for an objectYou can check the object lock status for individual files by following the instructions provided below. The Properties tab displays the retention mode, retain-until date, and legal-hold status for the selected file version.
How to apply retention settings for one or multiple filesWith CS Browser, you can conveniently update the retention settings for one or multiple files. Retention can be disabled for files protected by Governance mode when your AWS identity has the s3:BypassGovernanceRetention permission. CS Browser includes the x-amz-bypass-governance-retention: true header in the request. A legal hold is not bypassed and must be removed separately. For files protected by the Compliance mode, the retention period can only be extended. To apply or update retention settings for one or multiple files:
How to apply retention settings for all files in a bucketWith CS Browser, you can also update the retention settings for all files in a bucket. This can be particularly useful if you need to change the retention mode or update the retention period for every file in a bucket. CS Browser provides a convenient and efficient way to do this due to its support for multi-threading, allowing you to process multiple files in parallel. This can greatly speed up the process, especially for large buckets. To adjust the retention settings for all files in a bucket:
Bypass governance retention for file deletionTo delete file versions protected by Governance mode before their retain-until date, your AWS identity must have the s3:BypassGovernanceRetention permission, and the request must include the x-amz-bypass-governance-retention header. This header does not bypass a legal hold. CS Browser automatically includes the x-amz-bypass-governance-retention header when you edit retention settings for file(s). To delete file versions without disabling retention first, you need to include the x-amz-bypass-governance-retention header with your delete request. Below are the steps required to configure CS Browser to include the x-amz-bypass-governance-retention header with delete requests.
Related materials | CS Browser 13.5.5 Freeware ![]() Social Connection Our customers say "CS Browser is an invaluable tool to me as a web developer to easily manage my automated site backups" -Bob Kraft, Web Developer "Just want to show my appreciation for a wonderful product. I use CS Browser a lot, it is a great tool." -Gideon Kuijten, Pro User "Thank You Thank You Thank You for this tool. A must have for anyone using Amazon S3!" -Brian Cummiskey, USA Related Products TntDrive Easily mount Amazon S3 Bucket as a Windows Drive. RdpGuard protects your Windows Server from RDP Brute-force Attacks. |