Skip to content

Orchestration

Orchestration creates a whole set of resources at once from a text template: for example two instances, a volume, a network and a load balancer, all wired together. The set is called a stack. Open Orchestration > Stacks in the Console.

Use it when you create the same group of resources more than once, or want it defined in a file you can keep and review. For a single instance, use Compute instead.

Create a stack

  1. Open Orchestration > Stacks > Create Stack.
  2. In Prepare Template, choose Template Name and Template Content: paste the template or load it from a file. Add an Environment Variable file if the template needs one.
  3. In Fill In The Parameters, enter the Stack Name and the values the template asks for, such as the image, flavor and key pair.
  4. Optionally set a Creation Timeout (Minutes) and whether to Fail Rollback (undo everything if any part fails).
  5. Confirm. The stack's status becomes CREATE_COMPLETE when every resource exists.

Click the stack's name to see its Stack Resources (each thing it created, with a link), Stack Events (the log of what happened, useful when creation fails) and the YAML File.

Change or remove a stack

  • Update Template in the row menu applies a changed template. Resources that changed are updated or replaced; the rest are left alone.
  • Delete removes the stack and every resource it created. Resources you created by hand are not touched.

Writing a template

Templates are written in YAML in the HOT format. Resource types start with OS::, for example OS::Nova::Server for an instance. A minimal one that launches one instance:

heat_template_version: 2021-04-16

parameters:
  key_name:
    type: string

resources:
  server:
    type: OS::Nova::Server
    properties:
      image: ubuntu-cloud-22.04
      flavor: m5.small
      key_name: { get_param: key_name }
      networks:
        - network: vpc
      block_device_mapping_v2:
        - image: ubuntu-cloud-22.04
          volume_size: 20
          delete_on_termination: true