Getting a Private Template's Terraform Configuration
Get the Terraform configuration for a private template in Resource Manager.
- Open the navigation menu and click Developer Services. Under Resource Manager, click Private Templates.
- On the Private templates page, select the compartment that contains the private template that you want.
- Click the name of the private template that you want.
- On the Template information page, next to Terraform configuration, click Download.
Use the oci resource-manager template get-template-tf-config command and required parameters to get the Terraform configuration for a private template:
oci resource-manager template get-template-tf-config --template-id <template_OCID> --file <file_name>
For a complete list of parameters and values for CLI commands, see the Command Line Reference for Resource Manager.
Run the GetTemplateTfConfig operation to get the Terraform configuration for a private template.