Terraform Provider

This topic provides information about installing, configuring, and using the Terraform provider with the Terraform orchestration tool for Oracle Cloud Infrastructure.

Terraform is an open source tool that allows you to programmatically manage, version, and persist infrastructure through the "infrastructure-as-code" model. Terraform configurations codify your infrastructure in declarative files that contain the steps required to provision your infrastructure and maintain its state. You can share these files among team members, treat them as code, edit, review, and version them.

Terraform uses providers to interface between the Terraform engine and the supported cloud platform. The Oracle Cloud Infrastructure (OCI) Terraform provider is a component that connects Terraform to the OCI services that you want to manage.


Terraform state files contain all resource attributes that are specified as part of configuration files. If you manage any sensitive data with Terraform, like database or user passwords or instance private keys, you should treat the state file itself as sensitive data. See Storing Sensitive Data for more information.

You can use the OCI Terraform provider to manage OCI resources wherever you use a Terraform distribution, including Terraform Cloud and the OCI Resource Manager. Oracle Public Cloud has its own Terraform provider.

Resource Manager is an Oracle Cloud Infrastructure service that uses Terraform to automate the process of provisioning your Oracle Cloud Infrastructure.


You can migrate existing Terraform state files to Resource Manager using an import job.

See Getting Started to begin using the Terraform provider to manage your OCI resources.

Licensing: This provider and samples are licensed under the Mozilla Public License 2.0; third-party content is separately licensed as described in the code.


Got a fix for a bug, or a new feature you'd like to contribute? The Terraform provider is open source and accepting pull requests on GitHub.


To be notified when a new version of the OCI Terraform provider is released, subscribe to the Atom feed.