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.

    1. Open the navigation menu and click Developer Services. Under Resource Manager, click Private Templates.
    2. On the Private templates page, select a compartment.
    3. Click Create private template.
    4. In the Create private template panel, select the option corresponding to the location of the Terraform configuration (Folder or .Zip file) and then perform one of the following actions to upload the configuration:
      • Drag the folder or zip file onto the panel.
      • Click Browse and navigate to the location of the folder or zip file.
    5. Enter a name and optional description for the private template. Avoid entering confidential information.
    6. (Optional) Enter a detailed description of the private template.
      The detailed description is displayed in the Browse templates panel when the template is expanded.
    7. Click Show advanced options.
    8. Select the compartment that you want to store the new private template in.
      A compartment from the list scope is set by default.
    9. (Optional) Upload an icon to use with the template by performing one of the following actions:
      • Drag the icon file onto the panel.
      • Click Browse and navigate to the location of the icon file.
      The icon is displayed in the Browse templates panel when the template is expanded. A template icon file has the following requirements: PNG format, 50 KB maximum, 110 x 110 pixels.
    10. (Optional) Click Show advanced options and assign tags to the private template.
      • Tag namespace: To add a defined tag, select an existing namespace. To add a free-from tag, leave the value blank.
      • Tag key: To add a defined tag, select an existing tag key. To add a free-form tag, type the key name that you want.
      • Tag value: Type the tag value that you want.
      • Add tag: Click to add another tag.
    11. Click Create.
  • 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.