Create a Melbicom S3 Bucket with Object Lock

TUTORIAL

Make objects immutable for a retention period: create the bucket with Object Locking on (the only moment it can be enabled), then set a default retention in Compliance or Governance mode.

Backups and audit records need a stronger guarantee than a permission: nobody, including an administrator with the right credentials, should be able to delete or overwrite them before a set date. Object Lock gives a bucket exactly that. This tutorial creates a locked bucket on your Melbicom S3 Object Storage and sets its default retention.

Prerequisites

Step 1: Create the Bucket with Object Locking On

Object Locking can only be enabled when the bucket is created, never on an existing bucket. In the console, open Buckets, click Create Bucket, type a name with your account prefix, and switch Object Locking on. Versioning turns on with it: locking works on versions, so the two are inseparable.

Create Bucket form with Object Locking switched on

Click Create Bucket. The bucket is created with Object Locking enabled and, as a consequence, versioning on:

Bucket Summary page with Object Locking enabled

Step 2: Set the Default Retention

A locked bucket protects nothing by itself: retention is applied per object, and the default retention makes every new object inherit it. Click the Object Locking value on the Summary to open the retention dialog:

Default retention dialog with mode and validity settings
Setting Value
Retention Mode Compliance: no one can shorten the period or delete a version before it ends, not even the account owner. Governance: users with a specific bypass permission can, which suits internal policies that occasionally need an exception.
Retention Unit Days or years.
Retention Validity How long each new object stays locked from the moment it is written.

Choose Compliance for anything a regulation or a ransomware plan depends on. Choose Governance when your own team needs a documented way to release objects early. Set the validity to the retention your policy requires and click Set.

What You Have

A bucket where every object written from now on is immutable until its retention expires: overwrites create new versions instead of replacing, and deletes are refused. Point your backup tool at it. Locked versions count toward stored data until they expire, so choose the validity that matches the retention you need rather than the longest option.

Can’t find what you need? Our engineers are available around the clock, from quick fixes to full infrastructure design.