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
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. **
Bucket is created now.
Step 2 : Upload objects in bucket
Scroll down to the left side of the bucket. Under Resources, select Objects, and then click Upload
Select the file that you want to upload into the bucket and click Upload
And your object(file) is now uploaded.
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
Fill all the required details, and click on Create Pre-Authenticated request
"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.
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
file will open
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
As a result, the option for infrequent access in the lifecycle action is not available
We need to disable that option first. Simply click on the Edit option in Auto-Tiering
uncheck Auto-tiering, and click on save changes
Now Auto-tiering option is disabled.
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
write number of days, enabled state and click on create
As we can see in below screen, we **don't have permission **
so, first we have to update policy for bucket.
Now, we can create lifecycle rule
Lifecycle policy rule is created
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
Retention rule is created