- Mais recentes
- Mais votos
- Mais comentários
To configure object lock on existing objects present in S3 bucket, below two steps are to be followed:
- The bucket should have object lock enabled. You can turn on Object Lock for an existing bucket from the "Properties" section of S3 bucket : https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-s3-enabling-object-lock-buckets/
- Then, perform S3 batch operation to set the retention period for your existing objects. For this, you may first create S3 inventory report (which will contain the list of all the objects) for your S3 bucket and then perform S3 batch operation for setting Object Lock retention to apply retention dates (in either Governance or Compliance mode) on your existing objects.
Reference for S3 Inventory
Reference for S3 Batch operations and retention modes
You can also follow the guidelines outlined in this blog below to use S3 batch operation to set the retention period for your existing objects after enabling object lock on your bucket:
Note: If you use Inventory and S3 batch operations, you will incur additional charges, refer pricing document for additional details.
Hope you find this useful.
You can only enable Object Lock for new buckets. If you want to turn on Object Lock for an existing bucket, contact AWS Support.
Enabling object locking on a bucket does not retroactively lock existing objects in the bucket. Object locking can only be applied to objects that are uploaded or copied to the bucket after object locking is enabled. If you want to apply object locking to existing objects in the bucket, you will need to make a copy of each object and then delete the original object. The copy of the object will have the object lock applied to it.
Incorrect. put-object-retention can be used to apply a retention to existing objects as per https://catalog.workshops.aws/s3-data-protection/en-US/20-module-2/27-extend-lock
Conteúdo relevante
- AWS OFICIALAtualizada há 9 meses
- AWS OFICIALAtualizada há 8 meses
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 2 anos
Object lock can now be enabled on existing buckets without support engagment: https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-s3-enabling-object-lock-buckets/ Also locks can be applied to (and extended on) individual objects with put-object-retention as per https://catalog.workshops.aws/s3-data-protection/en-US/20-module-2/27-extend-lock