Dormeto

Docs

workloads

The workloads of both clouds: dormeto aws workloads through the manager, dormeto gcp workloads through a Google Cloud router.

17 min read

workloads access grant dormeto gcp only

Writes a GKE workload's Kubernetes access, its Role and RoleBinding.

dormeto gcp workloads access grant --project <project> --region <region> --gke-cluster <location>/<name> --namespace <namespace> --workload <workload> [--dry-run] [--yes]
OptionValuesDefaultEffect
--gke-cluster<location>/<name>requiredThe GKE cluster of the workload's pods.
--namespacea namespacerequiredThe workload's namespace.
--workloada workload IDrequiredThe workload, which names the objects.
dormeto gcp workloads access grant --project my-project --region europe-west1 --gke-cluster europe-west1-b/shop-cluster --namespace shop --workload shop --yes

Table

Kubernetes access of workload shop, namespace shop, cluster europe-west1-b/shop-cluster (gke-4f2a9c1e7b3d5a60-123456789012.europe-west1-b.gke.goog):
  + Role dormeto-shop
      apps: deployments, statefulsets: get
      apps: replicasets: list
      apps: deployments/scale, statefulsets/scale: patch
      "": pods, events: list
      keda.sh: scaledobjects: list, patch
      label app.kubernetes.io/managed-by: dormeto
  + RoleBinding dormeto-shop
      subject: User dmtr-europe-west1@my-project.iam.gserviceaccount.com
      role: Role dormeto-shop
      label app.kubernetes.io/managed-by: dormeto
  ✓ created Role dormeto-shop
  ✓ created RoleBinding dormeto-shop

JSON

{
  "cluster": "europe-west1-b/shop-cluster",
  "namespace": "shop",
  "workload": "shop",
  "serviceAccount": "dmtr-europe-west1@my-project.iam.gserviceaccount.com",
  "endpoint": "gke-4f2a9c1e7b3d5a60-123456789012.europe-west1-b.gke.goog",
  "role": {
    "action": "create",
    "current": null,
    "wanted": {
      "apiVersion": "rbac.authorization.k8s.io/v1",
      "kind": "Role",
      "metadata": {
        "name": "dormeto-shop",
        "namespace": "shop",
        "labels": {
          "app.kubernetes.io/managed-by": "dormeto"
        }
      },
      "rules": [
        {
          "apiGroups": [
            "apps"
          ],
          "resources": [
            "deployments",
            "statefulsets"
          ],
          "verbs": [
            "get"
          ]
        },
        {
          "apiGroups": [
            "apps"
          ],
          "resources": [
            "replicasets"
          ],
          "verbs": [
            "list"
          ]
        },
        {
          "apiGroups": [
            "apps"
          ],
          "resources": [
            "deployments/scale",
            "statefulsets/scale"
          ],
          "verbs": [
            "patch"
          ]
        },
        {
          "apiGroups": [
            ""
          ],
          "resources": [
            "pods",
            "events"
          ],
          "verbs": [
            "list"
          ]
        },
        {
          "apiGroups": [
            "keda.sh"
          ],
          "resources": [
            "scaledobjects"
          ],
          "verbs": [
            "list",
            "patch"
          ]
        }
      ]
    }
  },
  "roleBinding": {
    "action": "create",
    "current": null,
    "wanted": {
      "apiVersion": "rbac.authorization.k8s.io/v1",
      "kind": "RoleBinding",
      "metadata": {
        "name": "dormeto-shop",
        "namespace": "shop",
        "labels": {
          "app.kubernetes.io/managed-by": "dormeto"
        }
      },
      "subjects": [
        {
          "kind": "User",
          "name": "dmtr-europe-west1@my-project.iam.gserviceaccount.com",
          "apiGroup": "rbac.authorization.k8s.io"
        }
      ],
      "roleRef": {
        "apiGroup": "rbac.authorization.k8s.io",
        "kind": "Role",
        "name": "dormeto-shop"
      }
    }
  },
  "changed": [
    "created Role dormeto-shop",
    "created RoleBinding dormeto-shop"
  ]
}
  • It writes only the Role and RoleBinding dormeto-<workload> that onboard --gke-cluster applies (Access).
  • It writes what differs: run again, it writes nothing.
  • An object of that name without Dormeto's label is refused, nothing changed.

workloads access revoke dormeto gcp only

Removes a GKE workload's Kubernetes access: Dormeto's Role and RoleBinding.

dormeto gcp workloads access revoke --project <project> --region <region> --gke-cluster <location>/<name> --namespace <namespace> --workload <workload> [--dry-run] [--yes]
OptionValuesDefaultEffect
--gke-cluster<location>/<name>requiredThe GKE cluster of the workload's pods.
--namespacea namespacerequiredThe workload's namespace.
--workloada workload IDrequiredThe workload, which names the objects.
dormeto gcp workloads access revoke --project my-project --region europe-west1 --gke-cluster europe-west1-b/shop-cluster --namespace shop --workload shop --yes

Table

Kubernetes access of workload shop, namespace shop, cluster europe-west1-b/shop-cluster (gke-4f2a9c1e7b3d5a60-123456789012.europe-west1-b.gke.goog):
  - RoleBinding dormeto-shop
  - Role dormeto-shop
  ✓ removed RoleBinding dormeto-shop
  ✓ removed Role dormeto-shop

JSON

{
  "cluster": "europe-west1-b/shop-cluster",
  "namespace": "shop",
  "workload": "shop",
  "removed": [
    "RoleBinding dormeto-shop",
    "Role dormeto-shop"
  ],
  "left": null
}
  • It removes Dormeto's objects, even after routers uninstall.
  • An object of that name without Dormeto's label is left, and said.

workloads access show dormeto gcp only

Prints a GKE workload's Role and RoleBinding, and what grant would write.

dormeto gcp workloads access show --project <project> --region <region> --gke-cluster <location>/<name> --namespace <namespace> --workload <workload>
OptionValuesDefaultEffect
--gke-cluster<location>/<name>requiredThe GKE cluster of the workload's pods.
--namespacea namespacerequiredThe workload's namespace.
--workloada workload IDrequiredThe workload, which names the objects.
dormeto gcp workloads access show --project my-project --region europe-west1 --gke-cluster europe-west1-b/shop-cluster --namespace shop --workload shop

Table

Kubernetes access of workload shop, namespace shop, cluster europe-west1-b/shop-cluster (gke-4f2a9c1e7b3d5a60-123456789012.europe-west1-b.gke.goog):
In the cluster:
  Role dormeto-shop: Dormeto's
      apps: deployments, statefulsets: get
      apps: replicasets: list
      apps: deployments/scale, statefulsets/scale: patch
      "": pods, events: list
      keda.sh: scaledobjects: list, patch
      label app.kubernetes.io/managed-by: dormeto
  RoleBinding dormeto-shop: Dormeto's
      subject: User dmtr-europe-west1@my-project.iam.gserviceaccount.com
      role: Role dormeto-shop
      label app.kubernetes.io/managed-by: dormeto
What grant would write, for the router's service account:
  = Role dormeto-shop, as it should be
  = RoleBinding dormeto-shop, as it should be

JSON

{
  "cluster": "europe-west1-b/shop-cluster",
  "namespace": "shop",
  "workload": "shop",
  "serviceAccount": "dmtr-europe-west1@my-project.iam.gserviceaccount.com",
  "endpoint": "gke-4f2a9c1e7b3d5a60-123456789012.europe-west1-b.gke.goog",
  "role": {
    "action": "none",
    "current": {
      "apiVersion": "rbac.authorization.k8s.io/v1",
      "kind": "Role",
      "metadata": {
        "name": "dormeto-shop",
        "namespace": "shop",
        "labels": {
          "app.kubernetes.io/managed-by": "dormeto"
        },
        "resourceVersion": "1"
      },
      "rules": [
        {
          "apiGroups": [
            "apps"
          ],
          "resources": [
            "deployments",
            "statefulsets"
          ],
          "verbs": [
            "get"
          ]
        },
        {
          "apiGroups": [
            "apps"
          ],
          "resources": [
            "replicasets"
          ],
          "verbs": [
            "list"
          ]
        },
        {
          "apiGroups": [
            "apps"
          ],
          "resources": [
            "deployments/scale",
            "statefulsets/scale"
          ],
          "verbs": [
            "patch"
          ]
        },
        {
          "apiGroups": [
            ""
          ],
          "resources": [
            "pods",
            "events"
          ],
          "verbs": [
            "list"
          ]
        },
        {
          "apiGroups": [
            "keda.sh"
          ],
          "resources": [
            "scaledobjects"
          ],
          "verbs": [
            "list",
            "patch"
          ]
        }
      ]
    },
    "wanted": {
      "apiVersion": "rbac.authorization.k8s.io/v1",
      "kind": "Role",
      "metadata": {
        "name": "dormeto-shop",
        "namespace": "shop",
        "labels": {
          "app.kubernetes.io/managed-by": "dormeto"
        }
      },
      "rules": [
        {
          "apiGroups": [
            "apps"
          ],
          "resources": [
            "deployments",
            "statefulsets"
          ],
          "verbs": [
            "get"
          ]
        },
        {
          "apiGroups": [
            "apps"
          ],
          "resources": [
            "replicasets"
          ],
          "verbs": [
            "list"
          ]
        },
        {
          "apiGroups": [
            "apps"
          ],
          "resources": [
            "deployments/scale",
            "statefulsets/scale"
          ],
          "verbs": [
            "patch"
          ]
        },
        {
          "apiGroups": [
            ""
          ],
          "resources": [
            "pods",
            "events"
          ],
          "verbs": [
            "list"
          ]
        },
        {
          "apiGroups": [
            "keda.sh"
          ],
          "resources": [
            "scaledobjects"
          ],
          "verbs": [
            "list",
            "patch"
          ]
        }
      ]
    }
  },
  "roleBinding": {
    "action": "none",
    "current": {
      "apiVersion": "rbac.authorization.k8s.io/v1",
      "kind": "RoleBinding",
      "metadata": {
        "name": "dormeto-shop",
        "namespace": "shop",
        "labels": {
          "app.kubernetes.io/managed-by": "dormeto"
        },
        "resourceVersion": "2"
      },
      "subjects": [
        {
          "kind": "User",
          "name": "dmtr-europe-west1@my-project.iam.gserviceaccount.com",
          "apiGroup": "rbac.authorization.k8s.io"
        }
      ],
      "roleRef": {
        "apiGroup": "rbac.authorization.k8s.io",
        "kind": "Role",
        "name": "dormeto-shop"
      }
    },
    "wanted": {
      "apiVersion": "rbac.authorization.k8s.io/v1",
      "kind": "RoleBinding",
      "metadata": {
        "name": "dormeto-shop",
        "namespace": "shop",
        "labels": {
          "app.kubernetes.io/managed-by": "dormeto"
        }
      },
      "subjects": [
        {
          "kind": "User",
          "name": "dmtr-europe-west1@my-project.iam.gserviceaccount.com",
          "apiGroup": "rbac.authorization.k8s.io"
        }
      ],
      "roleRef": {
        "apiGroup": "rbac.authorization.k8s.io",
        "kind": "Role",
        "name": "dormeto-shop"
      }
    }
  }
}
  • It changes nothing.

workloads description dormeto aws only

Prints, sets or clears a workload's description.

dormeto aws workloads description <router>/<workload> [--set <text> | --file <path or -> | --clear] [--dry-run] [--yes]
OptionValuesDefaultEffect
<router>/<workload>a router and a workload IDrequiredThe workload.
--seta text—The description, in Markdown, up to 4,000 characters.
--filea file or -—Reads the description from it.
--clear——Removes the description.
dormeto aws workloads description prod-eu/web --set "The public site"

Table

prod-eu/web: description set (15 characters)

JSON

{
  "description": {
    "text": "The public site",
    "by": "ops@example.com",
    "at": "2026-11-14T10:00:00.000Z"
  }
}
  • Alone, it prints the Markdown, who wrote it and when, or no description (Workloads).
  • Writing it needs an operator.

workloads exclude dormeto aws only

Keeps the workload's target group or backend service out of discovery.

dormeto aws workloads exclude (<router>/<workload>... | --tag k=v...) --reason <text> [--for <duration> | --until <time>] [--no-wait] \
  [--timeout <duration>] [--dry-run] [--yes]
OptionValuesDefaultEffect
<router>/<workload>a router and a workload IDrequired, or --tagThe workloads, one or more.
--tagk=v, repeatable—Every workload with all these Dormeto tags, instead of targets.
--reason1 to 246 charactersrequiredWhy, shown in the dashboard.
--fora duration such as 90m, 3d or 1d12h, up to 366 daysuntil liftedHow long it lasts.
--untilHH:MM or RFC 3339, within --for's limit—When it ends, instead of --for.
--no-wait——Prints the operation's id instead (operations watch).
--timeouta duration1hStops waiting; the work goes on.
dormeto aws workloads exclude prod-eu/web --reason "always on" --for 30d --yes

Table

started exclude 6a0d3f7b-4e2c-4a1e-9b8d-3c5f1a7e9d26 for prod-eu/web
✓ prod-eu/web: exclude succeeded in 1m30s

JSON

[
  {
    "id": "6a0d3f7b-4e2c-4a1e-9b8d-3c5f1a7e9d26",
    "type": "exclude",
    "target": {
      "account": "111122223333",
      "region": "eu-west-1",
      "cloud": "aws"
    },
    "input": {
      "exclusionId": "a2c4e6f8-1b3d-4f5a-8c7e-9d0b2f4a6c18"
    },
    "status": "succeeded",
    "steps": [
      {
        "name": "pause workloads",
        "status": "done",
        "startedAt": "2026-11-14T10:00:00.000Z",
        "finishedAt": "2026-11-14T10:01:30.000Z",
        "attempts": 1
      }
    ],
    "cursor": 1,
    "holds": {
      "locks": [],
      "slots": []
    },
    "activeKey": "",
    "context": {},
    "by": "arn:aws:sts::111122223333:assumed-role/ops/ci",
    "createdAt": "2026-11-14T10:00:00.000Z",
    "updatedAt": "2026-11-14T10:01:30.000Z",
    "finishedAt": "2026-11-14T10:01:30.000Z"
  }
]
  • The manager pauses its managed workloads, in an operation it follows.
  • A failed step prints its detail. Ctrl-C stops following, not the operation.
  • It needs an operator; exclusions lift ends it.

workloads history dormeto aws only

Shows a workload's state changes and wakes over the last days.

dormeto aws workloads history <router>/<workload> [--days <1-31>]
OptionValuesDefaultEffect
<router>/<workload>a router and a workload IDrequiredThe workload.
--days1 to 31 days7 daysThe days of history.
dormeto aws workloads history prod-eu/web --days 7

Table

period   2026-11-07 10:00 UTC to 2026-11-14 10:00 UTC
states   ASLEEP 100%, AWAKE 0%, WAKING 0%, NAPPING 0%
wakes    1 wake, median 31 s, longest 31 s
savings  saved about $36.12 (estimate)

TIME                  STATE    CAUSE                                            DURATION
2026-11-14 08:12 UTC  ASLEEP   the idle check (no request for its idle window)  2 min
2026-11-14 08:10 UTC  NAPPING  the idle check (no request for its idle window)
2026-11-14 08:00 UTC  AWAKE    request  31 s
2026-11-14 07:59 UTC  WAKING   request

JSON

{
  "from": "2026-11-07T10:00:00.000Z",
  "to": "2026-11-14T10:00:00.000Z",
  "phases": [
    {
      "state": "ASLEEP",
      "from": "2026-11-07T10:00:00.000Z",
      "to": "2026-11-14T07:59:30.000Z"
    },
    {
      "state": "AWAKE",
      "from": "2026-11-14T08:00:00.000Z",
      "to": "2026-11-14T08:10:00.000Z"
    },
    {
      "state": "ASLEEP",
      "from": "2026-11-14T08:12:00.000Z",
      "to": "2026-11-14T10:00:00.000Z"
    }
  ],
  "totals": {
    "ASLEEP": 596400,
    "AWAKE": 600,
    "WAKING": 30,
    "NAPPING": 120
  },
  "wakes": {
    "count": 1,
    "failed": 0,
    "medianMs": 31000,
    "maxMs": 31000
  },
  "before": null,
  "truncated": false,
  "entries": [
    {
      "account": "111122223333",
      "region": "eu-west-1",
      "router": "prod-eu",
      "workloadId": "web",
      "from": "ASLEEP",
      "to": "WAKING",
      "at": "2026-11-14T07:59:30.000Z",
      "cause": "request",
      "cloud": "aws"
    },
    {
      "account": "111122223333",
      "region": "eu-west-1",
      "router": "prod-eu",
      "workloadId": "web",
      "from": "WAKING",
      "to": "AWAKE",
      "at": "2026-11-14T08:00:01.000Z",
      "cause": "request",
      "durationMs": 31000,
      "cloud": "aws"
    },
    {
      "account": "111122223333",
      "region": "eu-west-1",
      "router": "prod-eu",
      "workloadId": "web",
      "from": "AWAKE",
      "to": "NAPPING",
      "at": "2026-11-14T08:10:00.000Z",
      "cause": "idle",
      "cloud": "aws"
    },
    {
      "account": "111122223333",
      "region": "eu-west-1",
      "router": "prod-eu",
      "workloadId": "web",
      "from": "NAPPING",
      "to": "ASLEEP",
      "at": "2026-11-14T08:12:00.000Z",
      "cause": "idle",
      "durationMs": 120000,
      "cloud": "aws"
    }
  ],
  "savings": {
    "usd": 36.12,
    "hours": 124,
    "items": [
      {
        "item": {
          "kind": "ec2",
          "type": "m6i.large",
          "count": 2,
          "os": "linux"
        },
        "hourly": 0.214,
        "hours": 124,
        "usd": 26.54
      },
      {
        "item": {
          "kind": "rds",
          "class": "db.t4g.medium",
          "engine": "postgres"
        },
        "hourly": 0.077,
        "hours": 124,
        "usd": 9.58
      }
    ],
    "unpriced": [],
    "baseline": {
      "kind": "24x7"
    }
  }
}
  • It prints the time in each state, the wakes and the savings, then the latest 50 changes.

workloads idle-window dormeto aws only

Shows the manager's advice on a workload's idle window.

dormeto aws workloads idle-window <router>/<workload> [--yes]
OptionValuesDefaultEffect
<router>/<workload>a router and a workload IDrequiredThe workload.
dormeto aws workloads idle-window prod-eu/web

Table

idle window  current 20 min, recommended 15 min
recommended: 15 minutes, saves about $7.90 a month more than now, with 1.5 more wakes a day (about 31 seconds each)

WINDOW                SAVINGS A MONTH  WAKES A DAY  WAIT A DAY
10 min                $281.40          9.5          4 min 55 s
15 min (recommended)  $272.00          6            3 min 6 s
20 min (current)      $264.10          4.5          2 min 20 s

to change it: dormeto aws workloads settings prod-eu/web --idle-minutes 15 (a workload onboarded with Terraform: idle_minutes in its module)
every request counts as activity and as a wake; computed 2026-11-14 03:00 UTC, from the 14 days to 2026-11-14 03:00 UTC

JSON

{
  "computedAt": "2026-11-14T03:00:00.000Z",
  "from": "2026-10-31T03:00:00.000Z",
  "to": "2026-11-14T03:00:00.000Z",
  "current": 20,
  "recommended": 15,
  "checkMinutes": 5,
  "wakeSeconds": 31,
  "priced": true,
  "estimated": false,
  "windows": [
    {
      "minutes": 10,
      "asleepHours": 21.1,
      "usdMonth": 281.4,
      "wakesPerDay": 9.5,
      "waitSecondsPerDay": 295
    },
    {
      "minutes": 15,
      "asleepHours": 20.4,
      "usdMonth": 272.0,
      "wakesPerDay": 6.0,
      "waitSecondsPerDay": 186
    },
    {
      "minutes": 20,
      "asleepHours": 19.8,
      "usdMonth": 264.1,
      "wakesPerDay": 4.5,
      "waitSecondsPerDay": 140
    }
  ],
  "actual": {
    "wakes": 63,
    "replayedWakes": 63,
    "noisy": false
  },
  "wakerTargetGroup": true
}
  • It compares windows of 5 to 120 minutes, naming the command that changes it.
  • The manager computes it once a day: the first read may take a while.

workloads keep-awake dormeto aws only

Keeps workloads awake for a while: a pause that wakes them.

dormeto aws workloads keep-awake (<router>/<workload>... | --tag k=v...) (--for <duration> | --until <time>) [--reason <text>] [--wait] [--timeout <duration>] \
  [--dry-run] [--yes]
OptionValuesDefaultEffect
<router>/<workload>a router and a workload IDrequired, or --tagThe workloads, one or more.
--tagk=v, repeatable—Every workload with all these Dormeto tags, instead of targets.
--fora duration such as 90m, 2h or 2d, up to 7 daysrequired, or --untilHow long it lasts.
--untilHH:MM or RFC 3339, within --for's limit—When it ends, instead of --for.
--reason1 to 256 characterskeep-awake from the CLIWhy, shown in the dashboard.
--wait——Waits for the wake to end.
--timeouta duration15mStops waiting; the work goes on.
dormeto aws workloads keep-awake prod-eu/web --for 2h

Table

prod-eu/web: kept awake until 2026-11-14 12:00 UTC

JSON

{
  "prod-eu/web": {
    "pause": {
      "scope": "workload",
      "by": "arn:aws:sts::111122223333:assumed-role/ops/ci",
      "at": "2026-11-14T10:00:00.000Z",
      "reason": "kept awake",
      "until": "2026-11-14T12:00:00.000Z",
      "keepAsleep": false
    },
    "woken": [
      "web"
    ]
  }
}
  • It is a pause that wakes them; resume ends it.

workloads list

Amazon Web Servicesdormeto aws

Lists the workloads of both clouds: router, ID, name, state and tags.

dormeto aws workloads list [--state <state>]... [--router <router>] [--search <text>] [--tag k=v]... [--cloud aws|gcp]
OptionValuesDefaultEffect
--stateAWAKE, NAPPING, ASLEEP, WAKING or FAILED, comma-separated or repeatedallWorkloads in these states.
--routera routerallOne router's workloads.
--searcha text—Workloads whose name or ID holds it.
--tagk=v, repeatable—Workloads with all these Dormeto tags.
--cloudaws or gcpbothRows of one CLOUD, and their total; byState stays both clouds'.
dormeto aws workloads list

Table

ROUTER                        WORKLOAD  NAME      CLOUD  STATE   TAGS                    CHANGED
prod-eu                       web       Web shop  aws    ASLEEP  env=prod,team=web       1h
prod-eu                       api       API       aws    AWAKE   env=prod,team=payments  8m
dmtr-my-project-europe-west1  shop      shop      gcp    ASLEEP  team=web                2h
3 workloads (2 ASLEEP, 1 AWAKE)

JSON

{
  "workloads": [
    {
      "account": "111122223333",
      "region": "eu-west-1",
      "router": "prod-eu",
      "workloadId": "web",
      "name": "Web shop",
      "cloud": "aws",
      "state": "ASLEEP",
      "source": "manager",
      "tags": {
        "team": "web",
        "env": "prod"
      },
      "type": "web",
      "stateAt": "2026-11-14T08:12:00.000Z",
      "updatedAt": "2026-11-14T09:55:00.000Z"
    },
    {
      "account": "111122223333",
      "region": "eu-west-1",
      "router": "prod-eu",
      "workloadId": "api",
      "name": "API",
      "cloud": "aws",
      "state": "AWAKE",
      "source": "manager",
      "tags": {
        "team": "payments",
        "env": "prod"
      },
      "stateAt": "2026-11-14T09:52:00.000Z",
      "updatedAt": "2026-11-14T09:55:00.000Z"
    },
    {
      "account": "my-project",
      "region": "europe-west1",
      "router": "dmtr-my-project-europe-west1",
      "workloadId": "shop",
      "name": "shop",
      "cloud": "gcp",
      "state": "ASLEEP",
      "source": "cli",
      "tags": {
        "team": "web"
      },
      "stateAt": "2026-11-14T07:10:00.000Z",
      "updatedAt": "2026-11-14T09:55:00.000Z"
    }
  ],
  "total": 3,
  "byState": {
    "ASLEEP": 2,
    "AWAKE": 1
  },
  "stats7d": {
    "wakes": 41,
    "ignored": 312,
    "deferred": 9
  },
  "cursor": null,
  "errors": []
}
  • A router that does not answer is reported on stderr; the others are listed.

dormeto gcp

Lists the router's workloads and their states.

dormeto gcp workloads list --project <project> --region <region> [--state <state>]... [--search <text>] [--tag k=v]...
OptionValuesDefaultEffect
--stateAWAKE, NAPPING, ASLEEP, WAKING or FAILED, comma-separated or repeatedallWorkloads in these states.
--searcha text—Workloads whose name or ID holds it.
--tagk=v, repeatable—Workloads with all these Dormeto tags.
dormeto gcp workloads list --project my-project --region europe-west1

Table

ROUTER                        WORKLOAD  NAME  CLOUD  STATE   TAGS      CHANGED
dmtr-my-project-europe-west1  blog      blog  gcp    AWAKE   team=web  —
dmtr-my-project-europe-west1  shop      shop  gcp    ASLEEP  team=web  —
2 workloads (1 ASLEEP, 1 AWAKE)

JSON

{
  "workloads": [
    {
      "account": "my-project",
      "backendService": "blog",
      "backends": [
        {
          "id": "7730192837465019283",
          "kind": "instance",
          "location": "europe-west1-c",
          "name": "blog-1"
        }
      ],
      "cloud": "gcp",
      "lb": {
        "kind": "global"
      },
      "name": "blog",
      "pauses": [],
      "region": "europe-west1",
      "router": "dmtr-my-project-europe-west1",
      "state": "AWAKE",
      "stateAt": "2026-11-14T09:40:00.000Z",
      "tags": {
        "team": "web"
      },
      "urlMap": "blog-lb",
      "workloadId": "blog"
    },
    {
      "account": "my-project",
      "backendService": "shop",
      "backends": [
        {
          "id": "4419283746501928374",
          "kind": "instance",
          "location": "europe-west1-b",
          "name": "shop-1"
        }
      ],
      "cloud": "gcp",
      "lb": {
        "kind": "global"
      },
      "name": "shop",
      "pauses": [],
      "region": "europe-west1",
      "router": "dmtr-my-project-europe-west1",
      "state": "ASLEEP",
      "stateAt": "2026-11-14T07:10:00.000Z",
      "tags": {
        "team": "web"
      },
      "urlMap": "shop-lb",
      "workloadId": "shop"
    }
  ],
  "total": 2,
  "byState": {
    "ASLEEP": 1,
    "AWAKE": 1
  },
  "cursor": null,
  "errors": []
}
  • Its table and JSON are dormeto aws workloads list's.

workloads nap

Amazon Web Servicesdormeto aws

Asks the routers to nap workloads now.

dormeto aws workloads nap (<router>/<workload>... | --tag k=v...) [--dry-run] [--yes]
OptionValuesDefaultEffect
<router>/<workload>a router and a workload IDrequired, or --tagThe workloads, one or more.
--tagk=v, repeatable—Every workload with all these Dormeto tags, instead of targets.
dormeto aws workloads nap prod-eu/web

Table

prod-eu/web: nap requested

JSON

{
  "prod-eu/web": {
    "accepted": true
  }
}
  • Through the manager, a router refuses to nap a paused or not awake workload: exit 1.

dormeto gcp

Naps a workload now, without waiting for its idle window.

dormeto gcp workloads nap <workload> --project <project> --region <region> [--dry-run] [--yes]
OptionValuesDefaultEffect
<workload>a workload's IDrequiredThe workload.
dormeto gcp workloads nap blog --project my-project --region europe-west1

Table

dmtr-my-project-europe-west1/blog: nap requested

JSON

{
  "dmtr-my-project-europe-west1/blog": {
    "account": "my-project",
    "backendService": "blog",
    "backends": [
      {
        "id": "7730192837465019283",
        "kind": "instance",
        "location": "europe-west1-c",
        "name": "blog-1"
      }
    ],
    "cloud": "gcp",
    "lb": {
      "kind": "global"
    },
    "name": "blog",
    "pauses": [],
    "region": "europe-west1",
    "router": "dmtr-my-project-europe-west1",
    "state": "AWAKE",
    "stateAt": "2026-11-14T09:40:00.000Z",
    "tags": {
      "team": "web"
    },
    "urlMap": "blog-lb",
    "workloadId": "blog"
  }
}
  • A nap of a workload asleep already prints not awake (ASLEEP): exit 0.
  • A pause holds a nap.

workloads offboard

Amazon Web Servicesdormeto aws

Offboards workloads: Dormeto gives their application back; it needs an operator.

dormeto aws workloads offboard (<router>/<workload>... | --tag k=v...) [--concurrency <n>] [--no-wait] [--timeout <duration>] [--dry-run] [--yes]
OptionValuesDefaultEffect
<router>/<workload>a router and a workload IDrequired, or --tagThe workloads, one or more.
--tagk=v, repeatable—Every workload with all these Dormeto tags, instead of targets.
--concurrency1 to 204Offboardings at once.
--no-wait——Prints the operation's id instead (operations watch).
--timeouta duration1hStops waiting; the work goes on.
dormeto aws workloads offboard prod-eu/web --yes

Table

started offboard 2e9f4a6c-1d7b-4c58-b3e0-8a6d2f9c1b47 for prod-eu/web
✓ prod-eu/web: offboard succeeded in 1m30s

JSON

[
  {
    "id": "2e9f4a6c-1d7b-4c58-b3e0-8a6d2f9c1b47",
    "type": "offboard",
    "target": {
      "router": "prod-eu",
      "account": "111122223333",
      "region": "eu-west-1",
      "workloadId": "web",
      "cloud": "aws"
    },
    "input": {
      "router": "prod-eu",
      "account": "111122223333",
      "region": "eu-west-1",
      "workloadId": "web"
    },
    "status": "succeeded",
    "steps": [
      {
        "name": "locate",
        "status": "done",
        "startedAt": "2026-11-14T10:00:00.000Z",
        "finishedAt": "2026-11-14T10:01:30.000Z",
        "attempts": 1
      },
      {
        "name": "slot",
        "status": "done",
        "startedAt": "2026-11-14T10:00:00.000Z",
        "finishedAt": "2026-11-14T10:01:30.000Z",
        "attempts": 1
      },
      {
        "name": "lock load balancer",
        "status": "done",
        "startedAt": "2026-11-14T10:00:00.000Z",
        "finishedAt": "2026-11-14T10:01:30.000Z",
        "attempts": 1
      },
      {
        "name": "pause",
        "status": "done",
        "startedAt": "2026-11-14T10:00:00.000Z",
        "finishedAt": "2026-11-14T10:01:30.000Z",
        "attempts": 1
      },
      {
        "name": "wait awake",
        "status": "done",
        "startedAt": "2026-11-14T10:00:00.000Z",
        "finishedAt": "2026-11-14T10:01:30.000Z",
        "attempts": 1
      },
      {
        "name": "offboard",
        "status": "done",
        "startedAt": "2026-11-14T10:00:00.000Z",
        "finishedAt": "2026-11-14T10:01:30.000Z",
        "attempts": 1
      },
      {
        "name": "candidate",
        "status": "done",
        "startedAt": "2026-11-14T10:00:00.000Z",
        "finishedAt": "2026-11-14T10:01:30.000Z",
        "attempts": 1
      }
    ],
    "cursor": 7,
    "holds": {
      "locks": [],
      "slots": []
    },
    "activeKey": "",
    "context": {},
    "by": "arn:aws:sts::111122223333:assumed-role/ops/ci",
    "createdAt": "2026-11-14T10:00:00.000Z",
    "updatedAt": "2026-11-14T10:01:30.000Z",
    "finishedAt": "2026-11-14T10:01:30.000Z"
  }
]
  • It wakes the workload, gives its application back as it was, and it leaves Dormeto.
  • It refuses a GKE workload, or one whose onboarding turned request logs on: use dormeto gcp workloads offboard.
  • A failed step prints its detail. Ctrl-C stops following, not the operation.

dormeto gcp

Offboards a workload, and removes its tag bindings and Kubernetes access.

dormeto gcp workloads offboard <workload> --project <project> --region <region> [--force] [--dry-run] [--yes]
OptionValuesDefaultEffect
<workload>a workload's IDrequiredThe workload.
--force——Offboards a workload that cannot wake, its backends left down.
dormeto gcp workloads offboard shop --project my-project --region europe-west1 --yes

Table

dmtr-my-project-europe-west1/shop: offboarded

JSON

{
  "dmtr-my-project-europe-west1/shop": {
    "left": [],
    "offboarded": true,
    "untagged": null,
    "workloadId": "shop"
  }
}
  • It wakes the workload first.
  • It sets back the request logs its onboarding turned on, unless they changed since.
  • A VM left on a fallback type prints VM <name> is on <type>, its own is <type>: it keeps <type> until you change it by hand; JSON has fallbacks.
  • A NAPPING or WAKING workload is refused as busy, even with --force.
  • What the router could not give back prints with a !: exit 1.

workloads onboard

Amazon Web Servicesdormeto aws

Onboards a discovery candidate as a workload, through the manager; it needs an operator.

dormeto aws workloads onboard <candidate> [--name <name>] [--set-tag k=v]... [--idle-minutes <minutes>] [--wake-mode any|browser] \
  [--wake-timeout-seconds <seconds>] [--hibernate true|false] [--fallback-type <type>]... [--database <id>]... [--router <router>] \
  [--no-wait] [--timeout <duration>] [--dry-run] [--yes]
OptionValuesDefaultEffect
<candidate>a target group's ARN, a backend service's path or a pending one's unique namerequiredThe candidate, pending onboarding.
--namea name—Name.
--set-tagk=v, repeatable—Tags.
--idle-minutesminutes—Idle window.
--wake-modeany or browser—Wake mode.
--wake-timeout-secondsseconds—Wake timeout.
--hibernatetrue or false—Hibernate.
--fallback-typean instance or machine type, repeatable—Fallback types.
--databasea database identifier, repeatable—Companion databases.
--routera router—Router.
--no-wait——Prints the operation's id instead (operations watch).
--timeouta duration1hStops waiting; the work goes on.
dormeto aws workloads onboard api-tg

Table

started onboard 5b1e7c42-9d3a-4e8f-a6b2-0c4d8e1f3a57 for api-tg
✓ api-tg: onboard succeeded in 1m30s
onboarded prod-eu/api

JSON

{
  "id": "5b1e7c42-9d3a-4e8f-a6b2-0c4d8e1f3a57",
  "type": "onboard",
  "target": {
    "account": "111122223333",
    "region": "eu-west-1",
    "targetGroupArn": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:targetgroup/api-tg/6d0ecf831eec9f09",
    "cloud": "aws"
  },
  "input": {
    "candidateId": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:targetgroup/api-tg/6d0ecf831eec9f09",
    "settings": {},
    "databases": []
  },
  "status": "succeeded",
  "steps": [
    {
      "name": "find router",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "lock router",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "install roles",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "install table",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "install queues",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "install log groups",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "install functions",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "install async invoke",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "install event source mappings",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "install permissions",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "install event rule",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "install schedule",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "register router",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "access entries",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "kubernetes proxies",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "check clusters",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "slot",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "lock load balancer",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "preview",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "onboard",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "verify",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    },
    {
      "name": "candidate",
      "status": "done",
      "startedAt": "2026-11-14T10:00:00.000Z",
      "finishedAt": "2026-11-14T10:01:30.000Z",
      "attempts": 1
    }
  ],
  "cursor": 22,
  "holds": {
    "locks": [],
    "slots": []
  },
  "activeKey": "",
  "context": {
    "workloadId": "api",
    "router": {
      "name": "prod-eu"
    }
  },
  "by": "arn:aws:sts::111122223333:assumed-role/ops/ci",
  "createdAt": "2026-11-14T10:00:00.000Z",
  "updatedAt": "2026-11-14T10:01:30.000Z",
  "finishedAt": "2026-11-14T10:01:30.000Z"
}
  • It takes a candidate pending onboarding, and prints the new <router>/<workload id>.
  • A GKE candidate is ineligible: use dormeto gcp workloads access grant, then dormeto gcp workloads onboard.
  • A failed step prints its detail. Ctrl-C stops following, not the operation.

dormeto gcp

Onboards a backend service of an Application Load Balancer as a workload.

dormeto gcp workloads onboard --project <project> --region <region> --url-map <map> --backend-service <service> [--id <workload>] [--name <name>] \
  [--set-tag k=v]... [--idle-minutes <minutes>] [--wake-mode any|browser] [--wake-timeout-seconds <seconds>] [--hibernate true|false] \
  [--fallback-type <type>]... [--database <instance>]... [--load-balancer <kind>] [--request-logs] [--gke-cluster <location>/<name>] [--dry-run] [--yes]
OptionValuesDefaultEffect
--url-mapa URL maprequiredThe load balancer's URL map.
--backend-servicea backend servicerequiredThe application's backend service.
--idan ID—ID.
--namea name—Name.
--set-tagk=v, repeatable—Tags.
--idle-minutesminutes—Idle window.
--wake-modeany or browser—Wake mode.
--wake-timeout-secondsseconds—Wake timeout.
--hibernatetrue or false—Hibernate.
--fallback-typean instance or machine type, repeatable—Fallback types.
--databasea database identifier, repeatable—Companion databases.
--load-balancerglobal, regional, classic, internal or cross-region-internalread from GoogleThe load balancer's kind (Eligibility).
--request-logs——Request logs.
--gke-cluster<location>/<name>—The GKE cluster of the workload's pods.
dormeto gcp workloads onboard --project my-project --region europe-west1 --url-map checkout-lb --backend-service checkout --yes

Table

dmtr-my-project-europe-west1/checkout: onboarded (AWAKE)
  name: checkout
  URL map: checkout-lb
  backend service: checkout
  waker backend service: dmtr-europe-west1-checkout
  backend: instance checkout-1 (europe-west1-b)
  backend: asg checkout-mig (europe-west1)
  tagged: instance checkout-1 (europe-west1-b)
  tagged: asg checkout-mig (europe-west1)
  ! the idle check counts every request, scanners included: --request-logs reads the requests instead (Cloud Logging's price past its free tier)

JSON

{
  "dmtr-my-project-europe-west1/checkout": {
    "account": "my-project",
    "backendService": "checkout",
    "backends": [
      {
        "id": "5512098347561029384",
        "kind": "instance",
        "location": "europe-west1-b",
        "name": "checkout-1"
      },
      {
        "id": "6623109458672130495",
        "kind": "asg",
        "location": "europe-west1",
        "name": "checkout-mig"
      }
    ],
    "cloud": "gcp",
    "name": "checkout",
    "pauses": [],
    "region": "europe-west1",
    "router": "dmtr-my-project-europe-west1",
    "settings": null,
    "state": "AWAKE",
    "urlMap": "checkout-lb",
    "wakerBackendService": "dmtr-europe-west1-checkout",
    "workloadId": "checkout"
  }
}
  • Request logs go on in the map's scope.
  • A GKE workload gets its Kubernetes access first.
MessageCauseFix
! the idle check counts every request, scanners included: --request-logs reads the requests instead (Cloud Logging's price past its free tier)The backend service doesn't log every request.Offboard it, then onboard it with --request-logs.
--request-logs needs router <v> or later: dormeto gcp routers install --version <default>An older router.Run that install.
URL map <map> exists globally and in region <region>: say which with --load-balancer <kinds>That map name, in both scopes.Give its --load-balancer.
--<flag>: emptyAn empty --wake-mode, --load-balancer or --gke-cluster.Give a value, or omit the flag.
  • A setting left out follows the levels (the dialog's Inherit).

workloads pause

Amazon Web Servicesdormeto aws

Stops workloads' automatic naps for a while; it needs an operator.

dormeto aws workloads pause (<router>/<workload>... | --tag k=v...) --reason <text> [--for <duration> | --until <time>] [--keep-asleep] [--dry-run] [--yes]
OptionValuesDefaultEffect
<router>/<workload>a router and a workload IDrequired, or --tagThe workloads, one or more.
--tagk=v, repeatable—Every workload with all these Dormeto tags, instead of targets.
--reason1 to 256 charactersrequiredWhy, shown in the dashboard.
--fora duration such as 90m, 3d or 1d12h, up to 366 daysuntil resumedHow long it lasts.
--untilHH:MM or RFC 3339, within --for's limit—When it ends, instead of --for.
--keep-asleep——Leaves them asleep: a visitor wakes them, schedules and maintenance wait.
dormeto aws workloads pause prod-eu/web --reason "load test" --for 4h

Table

prod-eu/web: paused until 2026-11-14 14:00 UTC; woken web

JSON

{
  "prod-eu/web": {
    "pause": {
      "scope": "workload",
      "by": "arn:aws:sts::111122223333:assumed-role/ops/ci",
      "at": "2026-11-14T10:00:00.000Z",
      "reason": "load test",
      "until": "2026-11-14T14:00:00.000Z",
      "keepAsleep": false
    },
    "woken": [
      "web"
    ]
  }
}
  • It needs the nap permission, and the wake one unless they stay asleep.

dormeto gcp

Stops a workload's automatic naps for a while.

dormeto gcp workloads pause <workload> --project <project> --region <region> --reason <text> [--for <duration> | --until <time>] [--keep-asleep] \
  [--dry-run] [--yes]
OptionValuesDefaultEffect
<workload>a workload's IDrequiredThe workload.
--reason1 to 256 charactersrequiredWhy, shown in the dashboard.
--fora duration such as 90m, 3d or 1d12h, up to 366 daysuntil resumedHow long it lasts.
--untilHH:MM or RFC 3339, within --for's limit—When it ends, instead of --for.
--keep-asleep——Leaves them asleep: a visitor wakes them, schedules and maintenance wait.
dormeto gcp workloads pause shop --project my-project --region europe-west1 --reason "load test" --for 4h

Table

dmtr-my-project-europe-west1/shop: paused until 2026-11-14 14:00 UTC

JSON

{
  "dmtr-my-project-europe-west1/shop": {
    "account": "my-project",
    "backendService": "shop",
    "backends": [
      {
        "id": "4419283746501928374",
        "kind": "instance",
        "location": "europe-west1-b",
        "name": "shop-1"
      }
    ],
    "cloud": "gcp",
    "lb": {
      "kind": "global"
    },
    "name": "shop",
    "pauses": [
      {
        "at": "2026-11-01T10:00:00.000Z",
        "by": "ops@example.com",
        "keepAsleep": false,
        "reason": "load test",
        "scope": "workload",
        "until": "2026-11-14T14:00:00Z"
      }
    ],
    "region": "europe-west1",
    "router": "dmtr-my-project-europe-west1",
    "state": "ASLEEP",
    "stateAt": "2026-11-14T07:10:00.000Z",
    "tags": {
      "team": "web"
    },
    "urlMap": "shop-lb",
    "workloadId": "shop"
  }
}
  • No nap runs while it lasts: neither the idle window's, the schedule's nor nap's.
  • The workloads asleep wake first, unless kept asleep.

workloads rename dormeto aws only

Sets a workload's Name.

dormeto aws workloads rename <router>/<workload> <name> [--dry-run] [--yes]
OptionValuesDefaultEffect
<router>/<workload>a router and a workload IDrequiredThe workload.
<name>1 to 64 charactersrequiredThe new name.
dormeto aws workloads rename prod-eu/web "Web shop"

Table

prod-eu/web: renamed to Web shop

JSON

{
  "prod-eu/web": {
    "workloadId": "web",
    "name": "Web shop"
  }
}
  • It needs an operator; the router refuses a workload written by Terraform.

workloads resume

Amazon Web Servicesdormeto aws

Ends the pause of workloads: they follow their schedule and idle rules again.

dormeto aws workloads resume (<router>/<workload>... | --tag k=v...) [--dry-run] [--yes]
OptionValuesDefaultEffect
<router>/<workload>a router and a workload IDrequired, or --tagThe workloads, one or more.
--tagk=v, repeatable—Every workload with all these Dormeto tags, instead of targets.
dormeto aws workloads resume prod-eu/web

Table

prod-eu/web: resumed

JSON

{
  "prod-eu/web": {
    "resumed": true
  }
}
  • It ends a pause and a keep-awake alike.

dormeto gcp

Ends the pause of a workload: its naps run again.

dormeto gcp workloads resume <workload> --project <project> --region <region> [--dry-run] [--yes]
OptionValuesDefaultEffect
<workload>a workload's IDrequiredThe workload.
dormeto gcp workloads resume shop --project my-project --region europe-west1

Table

dmtr-my-project-europe-west1/shop: resumed

JSON

{
  "dmtr-my-project-europe-west1/shop": {
    "account": "my-project",
    "backendService": "shop",
    "backends": [
      {
        "id": "4419283746501928374",
        "kind": "instance",
        "location": "europe-west1-b",
        "name": "shop-1"
      }
    ],
    "cloud": "gcp",
    "lb": {
      "kind": "global"
    },
    "name": "shop",
    "pauses": [],
    "region": "europe-west1",
    "router": "dmtr-my-project-europe-west1",
    "state": "ASLEEP",
    "stateAt": "2026-11-14T07:10:00.000Z",
    "tags": {
      "team": "web"
    },
    "urlMap": "shop-lb",
    "workloadId": "shop"
  }
}
  • It leaves a pause of the router.

workloads settings

Amazon Web Servicesdormeto aws

Sets the workloads' own level of the settings, and their type; it needs an operator.

dormeto aws workloads settings (<router>/<workload>... | --tag k=v...) [--hibernate true|false|inherit] [--type <name>|inherit] [<settings>] \
  [--dry-run] [--yes]
OptionValuesDefaultEffect
<router>/<workload>a router and a workload IDrequired, or --tagThe workloads, one or more.
--tagk=v, repeatable—Every workload with all these Dormeto tags, instead of targets.
--hibernatetrue, false or inherit—Hibernate.
--typea type's name or inheritits tags', then its backends'The workload's type.
--idle-minutesminutes or inherit—Idle window.
--wait-secondsseconds or inherit—Hold.
--drain-secondsseconds or inherit—Drain.
--wake-timeout-secondsseconds or inherit—Wake timeout.
--max-holdersrequests or inherit—Held requests.
--failed-retry-secondsseconds or inherit—Retry after a failed wake.
--wake-modeany, browser or inherit—Wake mode.
--no-wake-rules-filea JSON file, - or inherit—No-wake rules.
--wake-rules-filea JSON file, - or inherit—Wake rules.
dormeto aws workloads settings prod-eu/web --idle-minutes 20

Table

prod-eu/web: its settings

JSON

{
  "prod-eu/web": {
    "level": "workload",
    "settings": {
      "idleMinutes": 20
    }
  }
}
  • A workload written by Terraform is refused: use its module.
  • A refused workload leaves the others: exit 1.

dormeto gcp

Sets the workloads' own level of the settings, and their type.

dormeto gcp workloads settings <workload>... --project <project> --region <region> [--hibernate true|false|inherit] [--type <name>|inherit] \
  [<settings>] [--dry-run] [--yes]
OptionValuesDefaultEffect
<workload>a workload's IDrequiredThe workloads, one or more.
--hibernatetrue, false or inherit—Hibernate.
--typea type's name or inheritits backends'The workload's type.
--idle-minutesminutes or inherit—Idle window.
--wait-secondsseconds or inherit—Hold.
--drain-secondsseconds or inherit—Drain.
--wake-timeout-secondsseconds or inherit—Wake timeout.
--max-holdersrequests or inherit—Held requests.
--failed-retry-secondsseconds or inherit—Retry after a failed wake.
--wake-modeany, browser or inherit—Wake mode.
--no-wake-rules-filea JSON file, - or inherit—No-wake rules.
--wake-rules-filea JSON file, - or inherit—Wake rules.
dormeto gcp workloads settings shop --project my-project --region europe-west1 --idle-minutes 20

Table

dmtr-my-project-europe-west1/shop: its settings

JSON

{
  "dmtr-my-project-europe-west1/shop": {
    "hibernation": {
      "from": "default",
      "hibernate": false
    },
    "level": "workload",
    "resolved": {
      "settings": {
        "idleMinutes": 20
      },
      "settingsFrom": {},
      "type": {
        "from": "backends",
        "name": "instance"
      }
    },
    "settings": {
      "idleMinutes": 20
    }
  }
}
  • A workload whose rules the router refuses gets nothing: exit 1.
  • It refuses any value but inherit of the hold, the held requests and the drain (Workloads).
  • <settings> stands for the options from --idle-minutes on; one left out keeps its value.

workloads show

Amazon Web Servicesdormeto aws

Prints a workload: its state, settings, pauses, schedule, week and costs.

dormeto aws workloads show <router>/<workload>
OptionValuesDefaultEffect
<router>/<workload>a router and a workload IDrequiredThe workload.
dormeto aws workloads show prod-eu/web

Table

workload        prod-eu/web
name            Web shop
state           ASLEEP since 2026-11-14 08:12 UTC
url             https://shop.example.com
cloud           aws
account         111122223333
region          eu-west-1
router version  0.40.0 (build b2026.11.12)
tags            env=prod, team=web

description
  The public site
  — ops@example.com, 2026-11-02 14:00 UTC

settings
  type           web (from its tags)
  idle window    20 min (type web)
  hold           20 s (built-in)
  drain          30 s (built-in)
  wake timeout   5 min (built-in)
  held requests  ≤ 50 (built-in)

schedule
  time zone Europe/Paris
  awake mon–fri 08:00–19:00
  except 2026-12-25
  maximum nap 7 days
  next
    Mon 16 Nov 08:00 CET awake window starts

last 7 days
  states      ASLEEP 74%, AWAKE 26%
  idle hours  124.5 (1830 requests)

costs
  saved (30 days)  $36.12, 124 hours asleep
  base cost        $0.2910 an hour
  saving           $157.20 a month at the rate of the last 30 days
  discounts        compute 20%, databases 10%
  energy not used  14.9 kWh, 4.20 kg CO2 (estimate)

JSON

{
  "description": {
    "text": "The public site",
    "by": "ops@example.com",
    "at": "2026-11-02T14:00:00.000Z"
  },
  "workloadId": "web",
  "name": "Web shop",
  "targetGroupArn": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:targetgroup/web-tg/3e5a7c9b1d2f4a60",
  "state": "ASLEEP",
  "stateAt": "2026-11-14T08:12:00.000Z",
  "updatedAt": "2026-11-14T08:12:00.000Z",
  "router": {
    "version": "0.40.0",
    "build": "b2026.11.12"
  },
  "type": {
    "name": "web",
    "from": "tags"
  },
  "settingsFrom": {
    "idleMinutes": "type",
    "waitSeconds": "default",
    "drainSeconds": "default",
    "wakeTimeoutSeconds": "default",
    "maxHolders": "default"
  },
  "settings": {
    "idleMinutes": 20,
    "waitSeconds": 20,
    "drainSeconds": 30,
    "wakeTimeoutSeconds": 300,
    "maxHolders": 50
  },
  "pauses": [],
  "schedule": {
    "timeZone": "Europe/Paris",
    "windows": [
      {
        "kind": "awake",
        "days": [
          "mon",
          "tue",
          "wed",
          "thu",
          "fri"
        ],
        "start": "08:00",
        "end": "19:00"
      }
    ],
    "exceptions": [
      "2026-12-25"
    ],
    "maxNapDays": 7,
    "by": "ops@example.com",
    "at": "2026-11-02T14:00:00.000Z"
  },
  "next": [
    {
      "at": "2026-11-16T07:00:00.000Z",
      "kind": "awake-start",
      "window": 0
    }
  ],
  "tags": {
    "team": "web",
    "env": "prod"
  },
  "can": {
    "wake": true,
    "nap": true
  },
  "account": "111122223333",
  "cloud": "aws",
  "region": "eu-west-1",
  "url": "https://shop.example.com",
  "states7d": {
    "from": "2026-11-07T10:00:00.000Z",
    "to": "2026-11-14T10:00:00.000Z",
    "totals": {
      "ASLEEP": 446400,
      "AWAKE": 158400
    }
  },
  "idleHours7d": 124.5,
  "requests7d": 1830,
  "costs": {
    "baseline": {
      "kind": "24x7"
    },
    "from": "2026-11-07T10:00:00.000Z",
    "to": "2026-11-14T10:00:00.000Z",
    "napAt": "2026-11-14T08:12:00.000Z",
    "savedShare": 0.74,
    "items": [
      {
        "item": {
          "kind": "ec2",
          "type": "m6i.large",
          "count": 2,
          "os": "linux"
        },
        "hourly": 0.214
      },
      {
        "item": {
          "kind": "rds",
          "class": "db.t4g.medium",
          "engine": "postgres"
        },
        "hourly": 0.077
      }
    ],
    "saved": {
      "usd": 36.12,
      "hours": 124,
      "unpricedHours": 0
    },
    "discounts": {
      "compute": 20,
      "databases": 10
    }
  },
  "energy": {
    "kwh": 14.9,
    "co2Kg": 4.2,
    "estimated": 1
  }
}
  • It also prints its URL, description, schedule, last 7 days and costs.

dormeto gcp

Prints a workload: its state, URL map, backend service, settings and backends.

dormeto gcp workloads show <workload> --project <project> --region <region>
OptionValuesDefaultEffect
<workload>a workload's IDrequiredThe workload.
dormeto gcp workloads show shop --project my-project --region europe-west1

Table

workload         dmtr-my-project-europe-west1/shop
name             shop
state            ASLEEP
cloud            gcp
project          my-project
region           europe-west1
tags             team=web
load balancer    global
URL map          shop-lb
backend service  shop
backends         instance shop-1 (europe-west1-b)

JSON

{
  "account": "my-project",
  "backendService": "shop",
  "backends": [
    {
      "id": "4419283746501928374",
      "kind": "instance",
      "location": "europe-west1-b",
      "name": "shop-1"
    }
  ],
  "cloud": "gcp",
  "lb": {
    "kind": "global"
  },
  "name": "shop",
  "pauses": [],
  "region": "europe-west1",
  "router": "dmtr-my-project-europe-west1",
  "state": "ASLEEP",
  "stateAt": "2026-11-14T07:10:00.000Z",
  "tags": {
    "team": "web"
  },
  "urlMap": "shop-lb",
  "workloadId": "shop"
}
  • The idle check row names what the idle check read: request logs or request count.
  • It prints the workload in labelled rows, then each setting with its level, and its pauses.
  • Each setting has its level: set on this workload, type <name>, router, organization, built-in or fixed on Google Cloud.
  • The JSON says workload, type, router, organization, default or Google Cloud's fixed.

workloads tags dormeto aws only

Changes Dormeto's tags of workloads; it needs an administrator.

dormeto aws workloads tags (<router>/<workload>... | --tag k=v...) [--set k=v]... [--unset k]... [--clear] [--dry-run] [--yes]
OptionValuesDefaultEffect
<router>/<workload>a router and a workload IDrequired, or --tagThe workloads, one or more.
--tagk=v, repeatable—Every workload with all these Dormeto tags, instead of targets.
--setk=v, repeatable—A tag: key 1 to 128, value up to 256 characters.
--unseta key, repeatable—Removes that tag.
--clear——Removes every tag first.
dormeto aws workloads tags prod-eu/web --set owner=web-team

Table

prod-eu/web: env=prod, owner=web-team, team=web

JSON

{
  "prod-eu/web": {
    "workloadId": "web",
    "tags": {
      "team": "web",
      "env": "prod",
      "owner": "web-team"
    }
  }
}
  • It sends Dormeto's tags, not the cloud's, only when they change.
  • Tags take letters, digits, spaces and _ . : / = + - @; no key starts with dormeto:.
  • A workload holds 50 tags at most.

workloads waiting-page clear

Amazon Web Servicesdormeto aws

Clears the workload's waiting page: it inherits the level above, or the default page.

dormeto aws workloads waiting-page clear <router>/<workload> [--dry-run] [--yes]
OptionValuesDefaultEffect
<router>/<workload>a router and a workload IDrequiredThe workload.
dormeto aws workloads waiting-page clear prod-eu/web

Table

prod-eu/web: waiting page cleared

JSON

{
  "own": null,
  "inherited": {
    "mode": "template",
    "icon": "auto",
    "title": "Waking up",
    "from": {
      "mode": "organization",
      "icon": "default",
      "title": "organization"
    }
  },
  "effective": {
    "mode": "template",
    "icon": "auto",
    "title": "Waking up",
    "from": {
      "mode": "organization",
      "icon": "default",
      "title": "organization"
    }
  },
  "from": {
    "mode": "organization",
    "icon": "default",
    "title": "organization"
  },
  "favicon": null,
  "warnings": [],
  "terraform": false,
  "by": null,
  "at": null
}
  • Clearing a custom page needs an administrator.
  • A workload written by Terraform is refused: set its module's waiting_page.

dormeto gcp

Clears the workload's waiting page: it inherits the level above, or the default page.

dormeto gcp workloads waiting-page clear <workload> --project <project> --region <region> [--dry-run] [--yes]
OptionValuesDefaultEffect
<workload>a workload's IDrequiredThe workload.
dormeto gcp workloads waiting-page clear shop --project my-project --region europe-west1

Table

dmtr-my-project-europe-west1/shop: waiting page cleared

JSON

{
  "at": "",
  "by": "",
  "effective": {
    "description": "",
    "from": {
      "icon": "default",
      "mode": "default"
    },
    "icon": "auto",
    "mode": "template",
    "title": ""
  },
  "favicon": null,
  "from": {
    "icon": "default",
    "mode": "default"
  },
  "own": null,
  "terraform": false,
  "warnings": []
}
  • A router without the waiting page says so, with the version to install.

workloads waiting-page set

Amazon Web Servicesdormeto aws

Sets the workload's waiting page: a template's fields, or a custom page.

dormeto aws workloads waiting-page set <router>/<workload> [--icon auto|none|<file>] [--title <text>] [--description <text>] | --html <file or -> [--dry-run] [--yes]
OptionValuesDefaultEffect
<router>/<workload>a router and a workload IDrequiredThe workload.
--iconauto (the favicon), none or a fileinheritedThe icon; give files named auto, none as ./auto, ./none.
--titlea textinheritedThe title.
--descriptiona textinheritedThe description.
--htmla file or -—A custom page, instead of the template.
dormeto aws workloads waiting-page set prod-eu/web --title "The shop wakes up"

Table

prod-eu/web: waiting page set (template)

JSON

{
  "own": {
    "mode": "template",
    "title": "The shop wakes up"
  },
  "inherited": {
    "mode": "template",
    "icon": "auto",
    "title": "Waking up",
    "from": {
      "mode": "organization",
      "icon": "default",
      "title": "organization"
    }
  },
  "effective": {
    "mode": "template",
    "icon": "auto",
    "title": "The shop wakes up",
    "from": {
      "mode": "workload",
      "icon": "default",
      "title": "workload"
    }
  },
  "from": {
    "mode": "workload",
    "icon": "default",
    "title": "workload"
  },
  "favicon": {
    "icon": null,
    "fetchedAt": "2026-11-14T09:00:00.000Z"
  },
  "warnings": [],
  "terraform": false,
  "by": "ops@example.com",
  "at": "2026-11-14T10:00:00.000Z"
}
  • A custom page needs an administrator.
  • A workload written by Terraform is refused: set its module's waiting_page.

dormeto gcp

Sets the workload's waiting page: a template's fields, or a custom page.

dormeto gcp workloads waiting-page set <workload> --project <project> --region <region> [--icon auto|none|<file>] [--title <text>] [--description <text>] | --html <file or -> [--dry-run] [--yes]
OptionValuesDefaultEffect
<workload>a workload's IDrequiredThe workload.
--iconauto (the favicon), none or a fileinheritedThe icon; give files named auto, none as ./auto, ./none.
--titlea textinheritedThe title.
--descriptiona textinheritedThe description.
--htmla file or -—A custom page, instead of the template.
dormeto gcp workloads waiting-page set shop --project my-project --region europe-west1 --title "The shop wakes up"

Table

dmtr-my-project-europe-west1/shop: waiting page set (template)

JSON

{
  "at": "2026-11-08T10:00:00.000Z",
  "by": "ops@example.com",
  "effective": {
    "description": "",
    "from": {
      "icon": "default",
      "mode": "workload",
      "title": "workload"
    },
    "icon": "auto",
    "mode": "template",
    "title": "The shop wakes up"
  },
  "favicon": null,
  "from": {
    "icon": "default",
    "mode": "workload",
    "title": "workload"
  },
  "own": {
    "mode": "template",
    "title": "The shop wakes up"
  },
  "terraform": false,
  "warnings": []
}
MessageCauseFix
custom pages are off on this router: an administrator turns them on with dormeto gcp routers install --custom-pagesThe router's custom pages are off.Install it again with --custom-pages.
  • It replaces the level's document.
  • The CLI checks the icon and the page first (Waiting page).

workloads waiting-page show

Amazon Web Servicesdormeto aws

Prints the workload's waiting page: its mode, fields and custom page.

dormeto aws workloads waiting-page show <router>/<workload>
OptionValuesDefaultEffect
<router>/<workload>a router and a workload IDrequiredThe workload.
dormeto aws workloads waiting-page show prod-eu/web

Table

prod-eu/web: waiting page, template (from the workload)
icon     auto (from built-in default)
title    The shop wakes up (from the workload)
favicon  none (tried 2026-11-14 09:00 UTC)
set on this workload by ops@example.com, 2026-11-14 10:00 UTC

JSON

{
  "own": {
    "mode": "template",
    "title": "The shop wakes up"
  },
  "inherited": {
    "mode": "template",
    "icon": "auto",
    "title": "Waking up",
    "from": {
      "mode": "organization",
      "icon": "default",
      "title": "organization"
    }
  },
  "effective": {
    "mode": "template",
    "icon": "auto",
    "title": "The shop wakes up",
    "from": {
      "mode": "workload",
      "icon": "default",
      "title": "workload"
    }
  },
  "from": {
    "mode": "workload",
    "icon": "default",
    "title": "workload"
  },
  "favicon": {
    "icon": null,
    "fetchedAt": "2026-11-14T09:00:00.000Z"
  },
  "warnings": [],
  "terraform": false,
  "by": "ops@example.com",
  "at": "2026-11-14T10:00:00.000Z"
}
  • It prints each field and its level.

dormeto gcp

Prints the workload's waiting page: its mode, fields and custom page.

dormeto gcp workloads waiting-page show <workload> --project <project> --region <region>
OptionValuesDefaultEffect
<workload>a workload's IDrequiredThe workload.
dormeto gcp workloads waiting-page show shop --project my-project --region europe-west1

Table

dmtr-my-project-europe-west1/shop: waiting page, template (from the workload)
icon     auto (from built-in default)
title    The shop wakes up (from the workload)
favicon  not read yet (a workload's favicon is read before its next nap)
set on this workload by ops@example.com, 2026-11-02 14:00 UTC

JSON

{
  "at": "2026-11-02T14:00:00.000Z",
  "by": "ops@example.com",
  "effective": {
    "description": "",
    "from": {
      "icon": "default",
      "mode": "workload",
      "title": "workload"
    },
    "icon": "auto",
    "mode": "template",
    "title": "The shop wakes up"
  },
  "favicon": null,
  "from": {
    "icon": "default",
    "mode": "workload",
    "title": "workload"
  },
  "own": {
    "mode": "template",
    "title": "The shop wakes up"
  },
  "terraform": false,
  "warnings": []
}
  • It prints each field and its level.
  • A custom page stored while custom pages are off shows off.

workloads wake

Amazon Web Servicesdormeto aws

Asks the routers to wake workloads now.

dormeto aws workloads wake (<router>/<workload>... | --tag k=v...) [--wait] [--timeout <duration>] [--dry-run] [--yes]
OptionValuesDefaultEffect
<router>/<workload>a router and a workload IDrequired, or --tagThe workloads, one or more.
--tagk=v, repeatable—Every workload with all these Dormeto tags, instead of targets.
--wait——Waits for the wake to end.
--timeouta duration15mStops waiting; the work goes on.
dormeto aws workloads wake prod-eu/web --wait

Table

prod-eu/web: wake requested (WAKING)
prod-eu/web: awake

JSON

{
  "prod-eu/web": {
    "state": "WAKING"
  }
}
  • Several targets ask first, on a terminal.

dormeto gcp

Wakes a workload now.

dormeto gcp workloads wake <workload> --project <project> --region <region> [--wait] [--timeout <duration>] [--dry-run] [--yes]
OptionValuesDefaultEffect
<workload>a workload's IDrequiredThe workload.
--wait——Waits for the wake to end.
--timeouta duration15mStops waiting; the work goes on.
dormeto gcp workloads wake shop --project my-project --region europe-west1 --wait

Table

dmtr-my-project-europe-west1/shop: wake requested (ASLEEP)
dmtr-my-project-europe-west1/shop: awake

JSON

{
  "dmtr-my-project-europe-west1/shop": {
    "account": "my-project",
    "backendService": "shop",
    "backends": [
      {
        "id": "4419283746501928374",
        "kind": "instance",
        "location": "europe-west1-b",
        "name": "shop-1"
      }
    ],
    "cloud": "gcp",
    "lb": {
      "kind": "global"
    },
    "name": "shop",
    "pauses": [],
    "region": "europe-west1",
    "router": "dmtr-my-project-europe-west1",
    "state": "ASLEEP",
    "stateAt": "2026-11-14T07:10:00.000Z",
    "tags": {
      "team": "web"
    },
    "urlMap": "shop-lb",
    "workloadId": "shop"
  }
}
  • A wake asked during a nap runs after it.
  • wake --wait prints <router>/<workload>: awake; failed to wake or a timeout: exit 1.