Compartments
Compartments
Basics
A compartment is a collection of related resources. It helps you organize, isolate, and control access to your resources.
To create a compartment:
OCI Console → Identity → Compartment.
Compartments can be nested up to six levels deep
Sub compartments inherit access permission from compartments upper its hierarchy.
Each resource belongs to a single compartment
Resources can interact even when they are located in different compartments
Resources can be moved from one compartment to another.
Resources from different regions can be in the same compartment
Can give a group of users access to compartment using policies
Best practices: Create dedicated compartments when you need to isolate resources.
Root compartment
The root compartment can hold all the cloud resource
Compartment Quotas
Compartment Quotas similar to Service Limits; the biggest difference is that service limits are set by Oracle, and compartment quotas are set by administrators using policies.
Three types of quota policies
Set: sets the maximum number of a cloud resource that can be used for a compartment.
Unset: resets quota to the default service limits.
Zero: removes access to a cloud resource for a compartment.
Example
Zero compute quotas /*bm*/ in tenancy
Set compute quota /*bm*/ to 5 in tenancy where request.region= us-phoenix-1
Compartment Explorer
OCI Console → Governance → Compartment Explorer.
Allow you to see all resources created under a specific compartment
Comments
Post a Comment