Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

2.367. openstack stack create

usage: openstack stack create [-h] [-f {json,shell,table,value,yaml}]
                              [-c COLUMN] [--max-width <integer>] [--noindent]
                              [--prefix PREFIX] [-e <environment>]
                              [--timeout <timeout>] [--pre-create <resource>]
                              [--enable-rollback] [--parameter <key=value>]
                              [--parameter-file <key=file>] [--wait]
                              [--tags <tag1,tag2...>] [--dry-run] -t
                              <template>
                              <stack-name>
Create a stack.

Positional arguments

<stack-name>


        Name of the stack to create

Optional arguments

-h, --help


        show this help message and exit

-e <environment>, --environment <environment>


      Path to the environment. Can be specified multiple
      times

--timeout <timeout>


        Stack creating timeout in minutes

--pre-create <resource>


      Name of a resource to set a pre-create hook to.
      Resources in nested stacks can be set using slash as a
      separator: nested_stack/another/my_resource. You can
      use wildcards to match multiple stacks or resources:
      nested_stack/an*/*_resource. This can be specified
      multiple times

--enable-rollback


        Enable rollback on create/update failure

--parameter <key=value>


      Parameter values used to create the stack. This can be
      specified multiple times

--parameter-file <key=file>


      Parameter values from file used to create the stack.
      This can be specified multiple times. Parameter values
      would be the content of the file

--wait


        Wait until stack goes to CREATE_COMPLETE or
      CREATE_FAILED

--tags <tag1,tag2...>


      A list of tags to associate with the stack

--dry-run


        Do not actually perform the stack create, but show
      what would be created

-t <template>, --template <template>


      Path to the template