15. Object storage configuration - Ayushi-srivastav/OCI GitHub Wiki

Step 1 : Explore the Object Storage

Click on the Burger Menu in left side, select storage than go to the object storage & archive storage

image

Click on create Bucket, Fill in all the details required to create a bucket

**A bucket in Oracle Cloud Infrastructure (OCI) is like a folder in the cloud where you can store your files — things like photos, videos, documents, or backups. **

image

Bucket is created now.

image

image

Step 2 : Upload objects in bucket

Scroll down to the left side of the bucket. Under Resources, select Objects, and then click Upload

image

Select the file that you want to upload into the bucket and click Upload

image

image

And your object(file) is now uploaded.

image

Step 3 . Create Pre-Authenticated request

pre-authenticated request (PAR) for a bucket in Oracle Cloud Infrastructure (OCI), you're basically giving someone a special link that lets them interact with that bucket — without needing to log in.

Under Resources, select Pre-Authenticated request, and then click Create Pre-Authenticated request

image

Fill all the required details, and click on Create Pre-Authenticated request

image

"After clicking on Create Pre-Authenticated Request, a tab will appear on the screen containing a Pre-Authenticated Request URL address. You need to copy and save that URL because it will not be shown again.

image

Just share this URL with the person you want to give access to for that particular object. They only need to copy that address and paste it into Google to open the object. They can execute read/write actions depending on the access type given to them

image

file will open

image

Step 4 : Lifecycle Rule

A lifecycle rule in a bucket (like in Oracle Cloud Infrastructure) is a way to automatically manage your files over time — kind of like setting up a cleaning schedule for your digital storage.

This could be:

  • Move to archive (for long-term, cheaper storage)
  • Delete (to free up space)
  • Move to infrequent access (if you don’t use the file often)

In the screen below, you can see that Auto-Tiering is enabled

image

As a result, the option for infrequent access in the lifecycle action is not available

image

We need to disable that option first. Simply click on the Edit option in Auto-Tiering

image

uncheck Auto-tiering, and click on save changes

image

Now Auto-tiering option is disabled.

image

Under Resources, select Lifecycle policy rule, and then click Create rule

Write name for policy rule, now, you can select option Move to Infrequent access in lifecycle rule

image

write number of days, enabled state and click on create

image

As we can see in below screen, we **don't have permission **

image

so, first we have to update policy for bucket.

image

Now, we can create lifecycle rule

image

image

Lifecycle policy rule is created

image

Step 5 : Create Retention rule

A retention rule in an OCI bucket is like putting a “do not delete or change” sticker on your files — for a set amount of time.

  • During that time, nobody can delete or change those files — not even admins.
  • You can choose between: (a) Time-bound rules (e.g. keep for 90 days) (b) Indefinite rules (keep forever until you remove the rule) And if you lock the rule, it becomes permanent — even Oracle Support can’t undo it. So it’s powerful, but you’ve got to use it carefully.

Under Resources, select Retention rule, and then click Create rule. fill all the details and click create

image

Retention rule is created

image