Create storage bucket

Storage buckets are used to contain images and other artifacts.

  1. From the navigation menu, select Object Storage > Object Storage.
  2. From the Compartment drop- down box, select the compartment to contain the bucket.
  3. Click Create Bucket.
  4. In the Create Bucket dialog box, enter a name for the bucket.
  5. Click Create Bucket.
  1. Return to or open an OCI terminal.
  2. Determine the OCI Object storage namespace by executing the oci os ns get command,
    This returns an output similar to:
    { 
        "data": "id732ljpics9"
    }

  3. Determine the OCI Compartment ID by executing the oci iam compartment list --all command.
    This returns an output similar to:

    {
        "data": [ {
    	"compartment-id": "ocid1...", 
           . . .
           "id": "ocid1.compartment.oc1..aaaaaaaazixo6ywqdhtwetbymmw6gmrxbyaajc4aibnczaihsrfi6n5z7axq",
    	. . . 
           "name": "OAG", 
    	"time-created": "2019-12-11T20:54:25.053000+00:00"
    	} ]
    
    }

  4. Using the namespace and compartment ID create a bucket using a command similar to:
    oci os bucket create \
        --namespace <namespace>  \
        --name <bucket name>  \
        --compartment-id <compartment id>

    For example:
    oci os bucket create \ 
        --namespace id732ljpics9 \ 
        --name "OAG" 
        --compartment-id ocid1.compartment.oc1..aaaaaaaazixo6ywqdhtwetbymmw6gmrxbyaajc4aibnczaihsrfi6n5z7axq
    					

See