Generate Terraform for a resource
generate_terraformGenerate a Terraform HCL resource block for any OCI resource by providing its type and OCID. Fetches live attributes and maps them to the matching oci_* resource for reproducible infrastructure.
Instructions
Generate a Terraform (HCL) resource block for a single OCI resource by type and OCID. Fetches the resource's attributes and maps them to the matching oci_* resource.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocid | Yes | The resource OCID | |
| resourceType | Yes | OCI resource type, e.g. Vcn, Subnet, Instance | |
| compartmentId | No | Compartment OCID (for scoping) |