Create a compartment
Compartments are used for grouping similar resources together. While it's optional, we recommend that you create a compartment for Access Gateway OVA.
- Sign in to Oracle Cloud.
- From the navigation menu, select .
- Click Create Compartment.
- In the Create Compartment dialog box, enter a name and description for the compartment.
- Click Create Compartment.
- Enter a Name and an Description.
- Click Create compartment.
Creating compartments can take upwards of 1-2 minutes.
- Open a terminal.
- Install, configure, and activate the OCI CLI as described in Install Oracle Cloud Infrastructure Command Line Interface.
- Determine the tenancy ID by examining the .oci/config file. This ID is required for creating a compartment within the root tenant.
cat .oci/config
[CONFIG] . . .
tenancy=ocid1.tenancy.oc1... . . . - Create a tenancy ID create a compartment using a command similar to:Copy
Create compartment example
oci iam compartment create \
--name "<compartment name>" \
--description "<Compartment description>" \
--compartment-id <compartment-id-from-config>
For example:
oci iam compartment create \ --name "OAG"\ --description "My OAG Compartment"\ --compartment-id ocid1.tenancy.oc1...
Creating compartments can take upwards of 1-2 minutes.