How to enable and test Compliance on a bucket (Immutability)?

The use of the Compliance settings on a bucket (a feature used to achieve bucket immutability or WORM-style storage) allow you to make sure that no files are modified or deleted ahead of a certain time.

 

1.  Enable Compliance mode on the bucket by going to 'Bucket Settings > Compliance'.  Note for this example, I have set the retention time to be only (1) day.  You may set this value to be in days/weeks/months/years, but you cannot set in hours.

Screen_Shot_2022-04-03_at_10.10.37_PM.png

 

2. Next, copy your files up to that bucket.

Screen_Shot_2022-04-03_at_10.36.33_PM.png

 

3.  If you attempt to delete a file within the bucket you will receive the following error until after the (1) day retention period is up:

Screen_Shot_2022-04-03_at_10.20.11_PM.png

 

Have more questions? Submit a request