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>
Example request:
oci resource-manager template create --compartment-id ocid1.tenancy.oc1..uniqueid --config-source my-template.zip --description "Template to deploy ABC infrastructure" --display-name "ABC Template"
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.