Skip to main content

Overview

A is the fundamental unit of Xloud Orchestration. You describe the desired infrastructure in an orchestration template, submit it to the Orchestration API, and the engine provisions every resource in dependency order, reporting the overall stack status when complete.
Prerequisites
  • A project with member or admin role
  • At least one image available in the Xloud Image Service
  • At least one flavor available for your project
  • A network available in your project
  • xloud CLI installed and authenticated (see CLI Setup)

What Is a Stack?

A stack groups related cloud resources into a single deployable unit:
ConceptDescription
TemplateA YAML file declaring the resources, parameters, and outputs for a deployment
StackThe live instantiation of a template — the actual running resources
ParameterA runtime variable that customizes a template without editing it
OutputA value produced by the stack (e.g., an IP address) returned after creation
ResourceA single cloud object managed by the stack (instance, network, volume, etc.)

Example Template

The following template launches a single compute instance with a configurable flavor. Save it as first-stack.yaml:
first-stack.yaml
xloud_template_version: "2025-10-15"

description: >
  A minimal orchestration template that launches a single compute
  instance with a parameterized flavor and key pair.

parameters:
  instance_name:
    type: string
    label: Instance Name
    description: Display name for the compute instance
    default: my-first-instance

  flavor:
    type: string
    label: Flavor
    description: Compute flavor (vCPU and RAM profile)
    default: m1.small

  image:
    type: string
    label: Image
    description: OS image name or ID to boot from
    default: Ubuntu-22.04

  key_name:
    type: string
    label: Key Pair
    description: SSH key pair for instance access

  network:
    type: string
    label: Network
    description: Network to attach the instance to
    default: default

resources:
  my_instance:
    type: Xloud::Compute::Server
    properties:
      name: { get_param: instance_name }
      flavor: { get_param: flavor }
      image: { get_param: image }
      key_name: { get_param: key_name }
      networks:
        - network: { get_param: network }

outputs:
  instance_id:
    description: The ID of the created instance
    value: { get_resource: my_instance }

  instance_ip:
    description: The assigned IP address
    value: { get_attr: [my_instance, first_address] }

Create a Stack

Navigate to Orchestration

Log in to the Xloud Dashboard (https://connect.<your-domain>) and navigate to Project → Orchestration → Stacks.

Launch stack creation

Click Launch Stack. The stack creation wizard opens.

Provide the template

On the Select Template page, select how to provide the template:
SourceDescription
FileUpload a .yaml file from your local machine
URLReference a template hosted at an accessible HTTP/HTTPS URL
Direct InputPaste the template YAML directly into the editor
Select File and upload first-stack.yaml, then click Next.
The Dashboard validates template syntax when you click Next. Syntax errors are reported inline before the stack is submitted.

Configure parameters

Fill in the parameter values for your stack:
ParameterExample Value
Stack Namemy-first-stack
Instance Namedemo-instance
Flavorm1.small
ImageUbuntu-22.04
Key Pairmy-keypair
Networkdefault
Click Launch to submit the stack.
The stack appears in the list with status Create In Progress.

Monitor progress

Click the stack name to open the detail view. The Topology tab shows a visual graph of resources. The Events tab streams real-time provisioning events.
Status transitions to Create Complete when all resources are successfully provisioned.

List and Inspect Stacks

Navigate to Project → Orchestration → Stacks to see all stacks in your project. Click any stack to view its topology, resources, events, and outputs.

Delete a Stack

Deleting a stack permanently deletes all resources it manages. This includes instances, volumes, networks, and any other resources created by the template. This operation cannot be undone.
In the Stacks list, check the box next to your stack and click Delete Stacks. Confirm the deletion in the dialog.
Stack status transitions to Delete In Progress, then disappears from the list.

Next Steps

Template Guide

Learn template structure, parameter types, and intrinsic functions

Resource Types

Explore compute, network, storage, and identity resource definitions

Manage Stacks

Update, suspend, resume, and manage the stack lifecycle

Auto-Scaling

Scale instance groups automatically with alarm-driven policies