You're viewing OCI IAM documentation for new tenancies in regions that have been updated to use identity domains.

Creating a Compartment

Create compartments in an IAM tenancy to organize and isolate your cloud resources.

If you belong to the Administrators group or if an administrator has created a policy that allows you to manage compartments, then you have the required access for creating compartments. Policies that manage compartments can be scoped to the tenancy level or to the compartment level.

When creating a compartment, you must provide a name for it that's unique within its parent compartment, with a maximum 100 characters, including letters, numbers, periods, hyphens, and underscores. You must also provide a description, which is a nonunique, changeable description for the compartment, from 1 to 400 characters. Oracle also assigns the compartment a unique ID called an Oracle Cloud ID (OCID). For more information, see Resource Identifiers.

You can create subcompartments in compartments to create hierarchies up are six levels deep, as shown in the following Console image.

Figure showing compartment hierarchy six levels deep

Was this article helpful?