Getting Started

Terraform is "infrastructure-as-code" software that allows you to define your Oracle Cloud Infrastructure (OCI) resources in files that you can persist, version, and share. These files describe the steps required to provision your infrastructure and maintain its desired state:

Resources can create OCI infrastructure objects such as virtual cloud networks or compute instances. Your first application of the configuration creates the objects, and subsequent applications can update or delete them.

Data sources represent read-only views of your existing OCI infrastructure.

Variables represent parameters for Terraform.

Terraform then executes these steps and builds out the described infrastructure. Using the OCI Terraform provider requires you to:

  • Install or access a distribution of Terraform.
  • Download and install the OCI Terraform provider.
  • Configure the OCI Terraform provider.
  • Describe your infrastructure as code.