Examples, Templates, and Solutions
See examples of OCI infrastructure descriptions using the Hashicorp Configuration Language format (HCL) in Terraform configuration files.
The OCI Terraform provider uses Terraform configuration files to manage your OCI infrastructure.
Referring to existing example configurations, sample solutions, and templates can help you understand HashiCorp Configuration Language format (HCL) and see how it is used to define OCI resources.
You can also modify examples or entire solution sets to meet your needs.
Example Configurations
We provide many example Terraform configuration files that show you how to create specific OCI resources. These examples are intended to be as simple as possible. In most cases, they contain only the specific resource and any dependencies required for it to run.
Examples are grouped by service, including Compute, Database, Networking, Load Balancer, and several others.
These don't represent production configurations or real world scenarios, but they can serve as a starting point and be modified and combined as necessary.
Templates
Oracle also provides templates for Resource Manager. Resource Manager uses Terraform to automate deployment and operations for OCI resources.
Templates can help those new to infrastructure-as-code and those who are updating production configurations. Use templates to try out Resource Manager and inspect the underlying oracle-terraform-modules to familiarize yourself with Terraform configuration files.
Architecture Center
The Oracle Architecture Center contains reference architectures, solution playbooks, and best practices. You can filter the content to see Terraform-specific information that you can use with the OCI Terraform provider or Resource Manager.