Choosing a Compartment
Compartments help you organize and control access to your resources. A compartment is a collection of related resources (such as cloud networks, compute instances, or block volumes) that can be accessed only by those groups that have been given permission by an administrator in your organization. For example, one compartment could contain all the servers and storage volumes that make up the production version of your company's Human Resources system. Only users with permission to that compartment can manage those servers and volumes.
In this tutorial you use one compartment for all your resources. When you are ready to create a production environment you will most likely separate these resources in different compartments.
Before You Begin
Sign in to the Console.
To begin working with a service, you must first select a service, and then select a compartment that you have permissions in.
- In this tutorial, the first resource you create is the cloud network. Open the navigation menu. Under Core Infrastructure, go to Networking and click Virtual Cloud Networks.
Select the Sandbox compartment (or the compartment designated by your administrator) from the list on the left, as shown in the image. If the Sandbox compartment does not exist, you can create it as described in Creating a Compartment.
- Open the navigation menu. Under Governance and Administration, go to Identity and click Compartments.
- Click Create Compartment.
- Enter the following:
- Name: Enter "Sandbox".
- Description: Enter a description (required), for example: "Sandbox compartment for the getting started tutorial". Avoid entering confidential information.
- Parent Compartment: Select the compartment you want this compartment to reside in. Defaults to the root compartment (or tenancy).
Click Create Compartment.
Your compartment is displayed in the list.
- Return to Choosing a Compartment.
When you select the Sandbox compartment, you will only see resources that are in the Sandbox. When you create new resources you will be prompted to choose the compartment to create them in, but your current compartment will be the default. If you change compartments, you must come back to the Sandbox compartment to see the resources that were created there.
Now you can begin creating resources in the compartment. See Creating a Virtual Cloud Network.