Creating a Stack from a Template

Create a stack in Resource Manager from a template. A template is a pre-built Terraform configuration for deploying cloud resources in a common scenario.

For more information about templates, see Templates.

Using the Console

  1. Open the navigation menu and click Developer Services. Under Resource Manager, click Stacks.
  2. Choose a compartment that you have permission to work in (on the left side of the page).
  3. Click Create stack.
  4. In the Create stack page, under Choose the origin of the Terraform configuration, select Template.
  5. Under Stack configuration, click Select template and then select the template you want.
    Private templates are under the Private tab.
    The dialog box is populated with information contained in the Terraform configuration.
  6. In the Stack information panel, fill in the fields.
    Use custom providers Select this option to use custom providers, and then select the bucket that contains the custom providers.
    Name Stack name. You can accept the default name provided. Avoid entering confidential information.
    Description Stack description (optional).
    Create in compartment Compartment where you want to create the stack. A compartment from the list scope is set by default.
    Terraform version Version that you want for the Terraform configuration.
    Tags Optionally apply tags to the stack.
  7. Click Next.
    The Configure variables panel lists variables from the Terraform configuration.
  8. Review the variables and change as needed.

    Don't add your private key or other confidential information to configuration variables.
  9. Click Next.
  10. In the Review panel, verify your stack configuration.
  11. To automatically provision resources when the stack is created, select Run apply.

    Run apply is selected by default for stacks created from the Deploy to Oracle Cloud button or from Marketplace.
  12. Click Create to create your stack.

The stack is created and its Stack details page opens.

If you selected Run apply, then Resource Manager runs the apply action on the new stack.

Using the API

Use the CreateStack operation to create a stack from a template.