Ensure there is at least one non-root compartment in your Oracle Cloud Infrastructure (OCI) tenancy to manage cloud resources. Having at least one non-root compartment is essential for better organization, access control, and security. It allows you to logically group resources, apply granular policies, and isolate projects or environments to prevent accidental changes or misuse of resources in the root compartment.
excellence
In Oracle Cloud Infrastructure (OCI), compartments enable you to organize and manage access to your cloud resources. A compartment is a logical grouping of related resources, including VM instances, databases, Virtual Cloud Networks (VCNs), storage buckets, and block volumes. Access to these resources is restricted to authorized groups, as defined by an administrator. When you sign up for an Oracle Cloud Infrastructure (OCI) account, a root compartment is created by default. The root compartment serves as the top-level compartment for your tenancy and it is used to organize and manage all the resources within your OCI environment. To follow best practices and enhance the organization of your cloud resources, it is highly recommended to create further compartments within the OCI root compartment.
Audit
To determine if there is at least one non-root compartment in your OCI tenancy to manage cloud resources, perform the following operations:
Remediation / Resolution
To create at least one non-root compartment in your OCI tenancy to manage cloud resources, perform the following operations:
References
- Oracle Cloud Infrastructure Documentation
- Working with Compartments
- Creating a Compartment
- Oracle Cloud Infrastructure CLI Documentation
- compartment list
- structured-search
- compartment create