Can object lock be applied to existing objects?
Applies to
- StorageGRID
- 11.5+
Answer
Yes. As long as that bucket was created with S3 Object Lock enabled.
Procedure is similar as for a new object, using a PUT with a retain date.
So like with aws cli :
aws s3api --put-object --bucket xxx
--key xxx
--object-lock-mode COMPLIANCE --object-lock-retain-until-date 2100-00-00T23:59:59