Skip to content

Latest commit

 

History

History
 
 

task-001-create-a-compartment

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Create a compartment

Create compartment

Key tasks include how to:

Use Oracle Cloud Infrastructure Terraform provider resources to:

  • Declare a compartment with your specifics.

  • Create the compartment in your tenancy.

  • Plan

╰─ terraform plan -var-file=$OCI_TFVARS_LOCATION/terraform.tfvars

  + create

Plan: 1 to add, 0 to change, 0 to destroy.
  • Apply
╰─ terraform apply -var-file=$OCI_TFVARS_LOCATION/terraform.tfvars

  + create
  Apply complete! Resources: 1 added, 0 changed, 0 destroyed.