Creating a Stack from a Template
Create a stack in Resource Manager from a template. A template is a prebuilt Terraform configuration for deploying cloud resources in a common scenario.
For more information about templates, see Oracle-Provided Templates and Managing Private Templates.
The stack is created and its details page opens.
If you selected Run apply, then Resource Manager runs the apply action on the new stack.
Use the
oci resource-manager stack create-from-template
command and required parameters to create a stack from a template.oci resource-manager stack create-from-template --compartment-id <compartment_OCID> --template-id <template_OCID>
For a complete list of parameters and values for CLI commands, see the Command Line Reference for Resource Manager.
Use the CreateStack operation to create a stack from a template.
For an example of the
configSource
part of the request, see CreateStackTemplateConfigSourceDetails.