Creating a Private Template
Create a private template in Resource Manager.
You can share private templates with anyone in your tenancy who has sufficient permissions.
For instructions to create a stack from your private template, see Creating a Stack from a Template.
Use the oci resource-manager template create command and required parameters to create a private template:
oci resource-manager template create --compartment-id <compartment_OCID> --config-source <text> --description <template_description> --display-name <template_name>
For a complete list of parameters and values for CLI commands, see the Command Line Reference for Resource Manager.
Run the CreateTemplate operation to create a private template.