15_1 ‐ OCI Object Storage: Bucket, Uploads, Pre‐Auth & Lifecycle - SanjeevOCI/Ocidocs GitHub Wiki
Applies to: OCI Object Storage service
Goal: Create a bucket, upload objects, generate a pre-authenticated URL, and configure lifecycle & retention rules.
- OCI tenancy with permissions for Object Storage (create buckets, policies)
- A file (e.g. text/image) to upload
- Understanding of bucket tiers, lifecycle rules, IAM policies
- Create Bucket
- Upload Objects
- Create Pre-Authenticated Request (PAR)
- Configure Lifecycle & Retention Rules
- Policies for Lifecycle Access
- Summary
- References
- ☰ → Storage → Object Storage & Archive Storage
- Click Create Bucket
- Fill in:
- Name: e.g.
Test_Bucket - Tier: Standard / Archive
- Enable Auto-Tiering (optional)
- Enable Object Versioning if needed
- Name: e.g.
- Click Create

Figure 1. Navigate to Object Storage service

Figure 2. Fill bucket details

Figure 3. Bucket “Test_Bucket” created
- Inside the bucket, go to Resources → Objects
- Click Upload
- Drop files (text, image, etc.) or browse
- Upload completes and objects appear in list

Figure 4. Upload objects interface

Figure 5. Objects listed inside bucket
- Under Resources → Pre-Authenticated Request, click Create PAR
- Select Target = Object, choose the object, set expiration and access type (Read / Write)
- Click Create
- Copy and save the PAR URL (shown once, retain it)

Figure 6. Create PAR screen

Figure 7. URL shown for the PAR
- Share this URL — the recipient can access the object per assigned permissions
- While Auto-Tiering is enabled by default, disable it if you want manual rules
- Go to Resources → Lifecycle Policy Rules → Create Rule
- After disabling auto-tiering, you can select actions like Move to Infrequent Access and set days
- Save the lifecycle rule

Figure 8. Disable Auto-Tiering first

Figure 9. Configure lifecycle rule
- For Retention Rule, go to Resources → Retention Rules → Create and set the retention period

Figure 10. Retention rule configuration
If you see InsufficientServicePermissions error when creating lifecycle rules:
- ☰ → Identity & Security → Policies → Create Policy
- Add policy like:
Allow service objectstorage-<region> to manage object-family in compartment <CompartmentName>
- Save the policy
- Return to the bucket and reattempt lifecycle rule creation
 Figure 11. IAM policy setup for access
In this lab, you learned to:
- Create an Object Storage bucket in OCI
- Upload objects (files, images) to the bucket
- Generate a Pre-Authenticated URL to access an object
- Configure Lifecycle & Retention rules, and disable Auto-Tiering
- Use IAM policies to grant Object Storage service rights for lifecycle management
This lab helps you build real-world backup, archival, data sharing, and lifecycle automation using OCI’s object storage features.