Dormeto

Docs

dormeto aws exclusions

Keeps a target group, load balancer or account out of discovery; each write needs an operator.

1 min read

exclusions add

Excludes a target from discovery, its workloads paused.

dormeto aws exclusions add (--target-group <arn|path> | --load-balancer <arn|path> | --account <id>) [--project <id>] --reason <text> \
  [--for <duration> | --until <time>] [--no-wait] [--timeout <duration>] [--dry-run] [--yes]
OptionValuesDefaultEffect
--target-groupan ARN or a backend service's path—A target group or backend service.
--load-balanceran ARN or a URL map's path—A load balancer or URL map.
--account12 digits or a project ID—An account or project.
--projecta project ID—An alias of --account.
--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, for operations watch.
--timeouta duration1hStops waiting; the work goes on.
dormeto aws exclusions add --account 444455556666 --reason "payments, never napped" --yes

Table

started exclude 8f3a1c5e-2b7d-4e9a-a0c6-4d1b9e7f2a83 for account 444455556666
✓ account 444455556666: exclude succeeded in 1m30s

JSON

{
  "id": "8f3a1c5e-2b7d-4e9a-a0c6-4d1b9e7f2a83",
  "type": "exclude",
  "target": {
    "account": "444455556666",
    "cloud": "aws"
  },
  "input": {
    "exclusionId": "3b7d9f1a-5c2e-4a8b-9d6f-1e4c7a2b8d50"
  },
  "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"
}
  • It always asks first, on a terminal.
  • A failed step prints its detail. Ctrl-C stops following, not the operation.

exclusions lift

Resumes the exclusions' workloads, then deletes the exclusions.

dormeto aws exclusions lift <id>... [--no-wait] [--timeout <duration>] [--dry-run] [--yes]
OptionValuesDefaultEffect
<id>an exclusion's IDrequiredThe exclusions, one or more.
--no-wait——Prints the operation's id instead, for operations watch.
--timeouta duration1hStops waiting; the work goes on.
dormeto aws exclusions lift 0d6f3a92-71c4-4e5b-8a2f-9b3c1d7e5a40

Table

started lift-exclusion 4c6e2a8b-9f1d-4b3c-8e5a-7d2f0b6c1e94 for 0d6f3a92-71c4-4e5b-8a2f-9b3c1d7e5a40
✓ 0d6f3a92-71c4-4e5b-8a2f-9b3c1d7e5a40: lift-exclusion succeeded in 1m30s

JSON

[
  {
    "id": "4c6e2a8b-9f1d-4b3c-8e5a-7d2f0b6c1e94",
    "type": "lift-exclusion",
    "target": {
      "account": "111122223333",
      "cloud": "aws"
    },
    "input": {
      "exclusionId": "0d6f3a92-71c4-4e5b-8a2f-9b3c1d7e5a40"
    },
    "status": "succeeded",
    "steps": [
      {
        "name": "resume 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"
  }
]
  • Lift it again if it stays listed.
  • One another operation holds is refused, the others go on: exit 1.
  • A failed step prints its detail. Ctrl-C stops following, not the operation.

exclusions list

Lists the exclusions: target, reason, who, until and state.

dormeto aws exclusions list

No option of its own.

dormeto aws exclusions list

Table

ID                                    TARGET                           REASON                  BY               UNTIL                 PAUSED   STATE
0d6f3a92-71c4-4e5b-8a2f-9b3c1d7e5a40  target group reports-tg          quarter-end reports     ops@example.com  2026-11-20 08:00 UTC  reports  active
6e8b1c35-0a9d-4f27-b4e6-3c5a7d9f1e82  account payments (444455556666)  payments, never napped  ops@example.com  —                     —        active

JSON

{
  "exclusions": [
    {
      "id": "0d6f3a92-71c4-4e5b-8a2f-9b3c1d7e5a40",
      "target": {
        "kind": "target-group",
        "arn": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:targetgroup/reports-tg/1a2b3c4d5e6f7081",
        "account": "111122223333",
        "region": "eu-west-1",
        "name": "reports-tg",
        "cloud": "aws"
      },
      "reason": "quarter-end reports",
      "by": "ops@example.com",
      "at": "2026-11-13T08:00:00.000Z",
      "expiresAt": "2026-11-20T08:00:00.000Z",
      "paused": [
        {
          "router": "prod-eu",
          "workloadId": "reports",
          "account": "111122223333",
          "region": "eu-west-1"
        }
      ],
      "expired": false,
      "lifting": false
    },
    {
      "id": "6e8b1c35-0a9d-4f27-b4e6-3c5a7d9f1e82",
      "target": {
        "kind": "account",
        "account": "444455556666",
        "name": "payments",
        "cloud": "aws"
      },
      "reason": "payments, never napped",
      "by": "ops@example.com",
      "at": "2026-11-01T09:00:00.000Z",
      "expired": false,
      "lifting": false
    }
  ]
}
  • Times are in your time zone.