# Create Stack

A stack consists of one or more templates that are run in a particular sequence. When you create a stack, you specify the Heat template and one or more template files that are referred to in the main Heat template.

You can directly input the YAML syntax for the main template or choose a YAML file. You must also specify the values of the parameters mentioned in the main template in the sequence in which they have been listed in the YAML file. Apart from this, you must specify the name of the stack and the timeout in minutes for the stack creation.

You must be a self-service user or an administrator to perform this operation. To create a stack, follow the steps given below.

1\. Log in to Clarity.

2\. Click Orchestration in the left panel.

3\. Click New Stack or Create New Stack.

4\. Select the File option and choose the YAML template file, or select Direct Input option and enter the template syntax in the text area provided for the template.

<figure><img src="/files/ynJNR8Dfc6MjJ3wzA1dh" alt=""><figcaption></figcaption></figure>

5\. Click Choose Files to add the YAML template files, if any, that have been referred to in the main template.

6\. Click Next.

7\. Enter the values for the stack parameters.

8\. Click Next.

9\. Enter the Stack Name.

10\. Enter the creation time in minutes.

11\. Click Launch.

The stack is launched and is accessible using the IP address that has been assigned to it.

You can click the stack name from the stack list and obtain the IP address from Info tab> Outputs section.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.platform9.com/managed-openstack/5.8/application-management/automation-create-stack.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
