Exporting a Template
Export an existing stack template as a YAML document from Oracle Cloud Stack. After exporting the template you can update it or use it to create a new template.
Exporting a Published Template with the Console
Use the web console to export a published template file from Oracle Cloud Stack.
- Access the Oracle Cloud Stack console, and then click Templates.
- To the right of the template that you want to export, click Download this template
.
- Follow the instructions in your web browser to save the YAML template file on your local machine.
Exporting an Unpublished Template with the Console
Use the web console to export an unpublished (draft) template file from Oracle Cloud Stack.
- Access the Oracle Cloud Stack console, and then click Templates.
- Click Unpublished.
- Click the template that you want to export.
- Click Export the current template
.
- Enter a file name for the template, and then click OK.
- Follow the instructions in your web browser to save the YAML file on your local machine.
Exporting a Template with the CLI
Use the CLI to export a template file from Oracle Cloud Stack.
After exporting the template you can modify its definition using any text editor. If you want to create a new template from the exported document modify the document’s templateName
property. After you’re finished changing the template, import the document back into Oracle Cloud
Stack. See Importing a Template.
For more information about the CLI commands for Oracle Cloud Stack, see psm stack Commands.