Using Terraform for Autonomous Database Services
Using HashiCorp Terraform, you can provision and manage resources for Oracle Database@Azure using the Terraform tool that enables you to provision and manage infrastructure in Oracle Cloud Infrastructure (OCI).
The OCI mechanism for Terraform provisioning and management is done via JSON scripts. Here are sample scripts.
Note
This document describes examples of provisioning and management of Oracle Database@Azure resources through Terraform provider AzAPI. The AzAPI TF provider resources and data sources are documented here https://registry.terraform.io/providers/Azure/azapi/latest/docs.
This document describes examples of provisioning and management of Oracle Database@Azure resources through Terraform provider AzAPI. The AzAPI TF provider resources and data sources are documented here https://registry.terraform.io/providers/Azure/azapi/latest/docs.
Terraform Roles
Within Terraform scripts, there are at least two (2) roles to consider, SPNs (Service Principal Names) and MIDs (Managed Identities). In general, SPNs use a secret or password and are provisioned in Entra ID. MIDs do not use a secret or password, and are not provisioned within Entra ID.
- For more information on SPNs, see Azure Provider: Authenticating using a Service Principal with a Client Secret.
- For more information on MIDs, see Azure Provider: Authenticating using managed identities for Azure resources.
No current Terraform examples specific to Autonomous Database Services.