Terraform Provider

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

Terraform is a tool that allows you to programmatically manage, version, and persist your IT infrastructure as "infrastructure as code." Terraform uses declarative syntax to describe your infrastructure and then persist it in configuration files that can be shared, reviewed, edited, versioned, preserved, and reused. You can use the Terraform provider's resource discovery feature to discover your deployed resources in a compartment and export them to Terraform configuration and state files.

The Oracle Cloud Infrastructure Terraform provider is a component that connects Terraform to the service infrastructure that you want to manage.


Manage your resources with Terraform by using Resource Manager. Resource Manager is an Oracle Cloud Infrastructure service that allows you to automate the process of provisioning your Oracle Cloud Infrastructure resources. Using Terraform, Resource Manager helps you install, configure, and manage resources through the "infrastructure-as-code" model. You can migrate existing Terraform state files to Resource Manager using an Import State job.

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

Documentation: Available on docs.cloud.oracle.com and terraform.io.


For troubleshooting, see Terraform state drift with tag defaults and tags for secondary resources for a known issue with tags related to Terraform.

Services Supported

  • Analytics Cloud
  • API Gateway
  • Audit
  • Autoscaling (Compute)
  • Big Data
  • Blockchain Platform
  • Budgets
  • Cloud Guard
  • Container Engine for Kubernetes
  • Content and Experience
  • Core services (Networking, Compute, Block Volume)
  • Cost Analysis (Usage API)
  • Data Catalog
  • Data Flow
  • Data Integration
  • Data Safe
  • Data Science
  • Database
  • Digital Assistant
  • DNS Service
  • Email Delivery
  • Events
  • FastConnect
  • File Storage
  • Functions
  • Health Checks
  • IAM
  • Integration Cloud
  • Key Management (for the Vault service)
  • Limits
  • Load Balancing
  • Logging
  • Logging Analytics
  • Logging Search
  • Logging Ingestion
  • Management Agent Cloud
  • Management Dashboard
  • Marketplace
  • Monitoring
  • MySQL Database
  • NoSQL Database Cloud
  • Notifications
  • Object Storage
  • OS Management
  • Service Connector Hub
  • Streaming
  • Oracle Cloud VMware Solution
  • Web Application Firewall (WAF)


The Oracle Cloud Infrastructure Terraform provider itself is region agnostic. You can use the Terraform provider to work with supported services in all Oracle Cloud Infrastructure regions in which they are available. Government Cloud customers should be aware that Terraform provider does not support Federal Information Processing Standard (FIPS) certified encryption.

See Regions and Availability Domains for the list of available regions, along with associated locations, region identifiers, region keys, and availability domains.


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 Terraform provider is released, subscribe to the Atom feed.

Questions or Feedback

You can use GitHub to file bugs and submit feature requests.