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.

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.

No current Terraform examples specific to Autonomous Database Services.