Dormeto

Docs

dormeto aws discovery

Shows and runs discovery, sorts its candidates, and sets its configuration.

2 min read

discovery access

Lists the accounts and projects that miss a role.

dormeto aws discovery access [--cloud aws|gcp] [--limit <n>]
OptionValuesDefaultEffect
--cloudaws or gcpbothOne cloud's rows, by their CLOUD column; totals stay both clouds'.
--limita number0The most rows; 0 for all.
dormeto aws discovery access

Table

checked   2026-11-14 06:01 UTC
accounts  2 ready, 0 without the discovery role, 1 without the command role, 0 not checked

NAME      CLOUD  ACCOUNT OR PROJECT  DISCOVERY  COMMAND                FORWARDER
payments  aws    444455556666        ok         none (discovery only)  —

JSON

{
  "accounts": [
    {
      "account": "444455556666",
      "name": "payments",
      "discovery": {
        "ok": true
      },
      "command": {
        "ok": false,
        "reason": "role dmt-prod-command not found",
        "discoveryOnly": true
      },
      "cloud": "aws"
    }
  ],
  "checkedAt": "2026-11-14T06:01:12.000Z",
  "counts": {
    "ready": 2,
    "discoveryMissing": 0,
    "commandMissing": 1,
    "unchecked": 0
  },
  "delegation": "ok"
}

discovery candidates

Lists the candidates of one status, of both clouds.

dormeto aws discovery candidates [--status <status>] [--account <id> [--candidate-region <region>]] [--project <id>] [--cloud aws|gcp] [--limit <n>]
OptionValuesDefaultEffect
--statuspending-onboarding, pending-offboarding, managed, ineligible, dismissed, excluded, out-of-scope or gonepending-onboardingThe candidates' status.
--account12 digits or a project IDallOne account's or project's candidates.
--candidate-regiona region or globalallOne region of --account.
--projecta project ID—An alias of --account.
--cloudaws or gcpbothOne cloud's rows, by their CLOUD column; totals stay both clouds'.
--limita number0The most rows; 0 for all.
dormeto aws discovery candidates

Table

TARGET GROUP OR BACKEND SERVICE  CLOUD  ACCOUNT OR PROJECT  REGION     HOSTS                 IDLE 7D  REQUESTS 7D  WORKLOAD  REASON
api-tg                           aws    111122223333        eu-west-1  api.example.com       132h     2210         —         eligible
batch-tg                         aws    111122223333        eu-west-1  batch.example.com     158h     96           —         eligible
checkout                         gcp    my-project          global     checkout.example.com  140h     512          —         eligible

JSON

{
  "candidates": [
    {
      "id": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:targetgroup/api-tg/6d0ecf831eec9f09",
      "account": "111122223333",
      "region": "eu-west-1",
      "cloud": "aws",
      "loadBalancer": "prod-alb",
      "loadBalancerArn": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:loadbalancer/app/prod-alb/50dc6c495c0c9188",
      "listener": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:listener/app/prod-alb/50dc6c495c0c9188/f2f7dc8efc522ab2",
      "priority": "10",
      "conditions": "host api.example.com",
      "hosts": [
        "api.example.com"
      ],
      "targetGroup": "api-tg",
      "targetGroupArn": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:targetgroup/api-tg/6d0ecf831eec9f09",
      "backend": {
        "kind": "instance",
        "id": "i-0a1b2c3d4e5f60718"
      },
      "tags": {
        "team": [
          "web"
        ]
      },
      "rules": [],
      "eligibility": "eligible",
      "idleHours7d": 131.5,
      "requests7d": 2210,
      "accountName": "prod",
      "ouPath": [
        "Root",
        "Workloads"
      ],
      "scope": "in",
      "scopeReason": "filter all",
      "status": "pending-onboarding",
      "statusReason": "eligible",
      "firstSeenAt": "2026-11-10T06:00:00.000Z",
      "lastSeenAt": "2026-11-14T06:00:00.000Z",
      "history": []
    },
    {
      "id": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:targetgroup/batch-tg/0f1e2d3c4b5a6978",
      "account": "111122223333",
      "region": "eu-west-1",
      "cloud": "aws",
      "loadBalancer": "prod-alb",
      "loadBalancerArn": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:loadbalancer/app/prod-alb/50dc6c495c0c9188",
      "listener": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:listener/app/prod-alb/50dc6c495c0c9188/f2f7dc8efc522ab2",
      "priority": "10",
      "conditions": "host batch.example.com",
      "hosts": [
        "batch.example.com"
      ],
      "targetGroup": "batch-tg",
      "targetGroupArn": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:targetgroup/batch-tg/0f1e2d3c4b5a6978",
      "backend": {
        "kind": "instance",
        "id": "i-0a1b2c3d4e5f60718"
      },
      "tags": {
        "team": [
          "web"
        ]
      },
      "rules": [],
      "eligibility": "eligible",
      "idleHours7d": 158.0,
      "requests7d": 96,
      "accountName": "prod",
      "ouPath": [
        "Root",
        "Workloads"
      ],
      "scope": "in",
      "scopeReason": "filter all",
      "status": "pending-onboarding",
      "statusReason": "eligible",
      "firstSeenAt": "2026-11-10T06:00:00.000Z",
      "lastSeenAt": "2026-11-14T06:00:00.000Z",
      "history": []
    },
    {
      "id": "projects/my-project/global/backendServices/checkout",
      "account": "my-project",
      "region": "global",
      "cloud": "gcp",
      "loadBalancer": "checkout-lb",
      "conditions": "host checkout.example.com",
      "hosts": [
        "checkout.example.com"
      ],
      "targetGroup": "checkout",
      "backend": {
        "kind": "instance-group",
        "id": "checkout-mig"
      },
      "tags": {},
      "rules": [],
      "eligibility": "eligible",
      "idleHours7d": 140.25,
      "requests7d": 512,
      "backendService": "checkout",
      "urlMap": "checkout-lb",
      "lb": {
        "kind": "global"
      },
      "accountName": "my-project",
      "ouPath": [],
      "scope": "in",
      "scopeReason": "filter all",
      "status": "pending-onboarding",
      "statusReason": "eligible",
      "firstSeenAt": "2026-11-12T06:00:00.000Z",
      "lastSeenAt": "2026-11-14T06:00:00.000Z",
      "history": []
    }
  ]
}

discovery config set

Replaces the discovery configuration; it needs an administrator.

dormeto aws discovery config set --file <path or -> [--dry-run] [--yes]
OptionValuesDefaultEffect
--filea JSON file or -requiredThe whole new configuration.
dormeto aws discovery config set --file discovery.json --yes

Table

discovery configuration replaced
no lint findings

JSON

{
  "config": {
    "version": 1,
    "mode": "organization",
    "regions": [
      "eu-west-1",
      "us-east-1"
    ],
    "refreshHours": 24,
    "globalExcludes": [],
    "filters": [
      {
        "name": "all",
        "include": [
          {
            "all": true
          }
        ],
        "exclude": []
      }
    ]
  },
  "lint": []
}
  • It always asks first, on a terminal.
  • The manager checks it; a refusal prints each error on a line: exit 1.

discovery config show

Prints the configuration as JSON, the lint on stderr.

dormeto aws discovery config show

No option of its own.

dormeto aws discovery config show

Table

{
  "version": 1,
  "mode": "organization",
  "regions": [
    "eu-west-1",
    "us-east-1"
  ],
  "refreshHours": 24,
  "globalExcludes": [
    {
      "tag": "dormeto:skip"
    }
  ],
  "filters": [
    {
      "name": "all",
      "include": [
        {
          "all": true
        }
      ],
      "exclude": []
    }
  ]
}

JSON

{
  "config": {
    "version": 1,
    "mode": "organization",
    "regions": [
      "eu-west-1",
      "us-east-1"
    ],
    "refreshHours": 24,
    "globalExcludes": [
      {
        "tag": "dormeto:skip"
      }
    ],
    "filters": [
      {
        "name": "all",
        "include": [
          {
            "all": true
          }
        ],
        "exclude": []
      }
    ]
  },
  "updatedAt": "2026-11-02T14:00:00.000Z",
  "updatedBy": "ops@example.com",
  "lint": []
}
  • What it prints is a file config set takes.

discovery dismiss

Takes candidates off the onboarding list; it needs an operator.

dormeto aws discovery dismiss <candidate>... [--note <text>] [--dry-run] [--yes]
OptionValuesDefaultEffect
<candidate>a target group's ARN, a backend service's path or a pending one's unique namerequiredThe candidates, one or more.
--noteup to 256 characters—Why they are dismissed.
dormeto aws discovery dismiss batch-tg --note "runs at night"

Table

dismissed 1 candidate: batch-tg

JSON

[
  {
    "id": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:targetgroup/batch-tg/0f1e2d3c4b5a6978",
    "account": "111122223333",
    "region": "eu-west-1",
    "cloud": "aws",
    "loadBalancer": "prod-alb",
    "loadBalancerArn": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:loadbalancer/app/prod-alb/50dc6c495c0c9188",
    "listener": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:listener/app/prod-alb/50dc6c495c0c9188/f2f7dc8efc522ab2",
    "priority": "10",
    "conditions": "host batch.example.com",
    "hosts": [
      "batch.example.com"
    ],
    "targetGroup": "batch-tg",
    "targetGroupArn": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:targetgroup/batch-tg/0f1e2d3c4b5a6978",
    "backend": {
      "kind": "instance",
      "id": "i-0a1b2c3d4e5f60718"
    },
    "tags": {
      "team": [
        "web"
      ]
    },
    "rules": [],
    "eligibility": "eligible",
    "idleHours7d": 158.0,
    "requests7d": 96,
    "accountName": "prod",
    "ouPath": [
      "Root",
      "Workloads"
    ],
    "scope": "in",
    "scopeReason": "filter all",
    "status": "dismissed",
    "statusReason": "dismissed",
    "firstSeenAt": "2026-11-10T06:00:00.000Z",
    "lastSeenAt": "2026-11-14T06:00:00.000Z",
    "history": [],
    "dismissed": {
      "by": "arn:aws:sts::111122223333:assumed-role/ops/ci",
      "at": "2026-11-14T10:00:00.000Z",
      "note": "runs at night"
    }
  }
]
  • A name is resolved among the candidates pending onboarding; an unknown or shared one: exit 2.
  • restore brings them back.

discovery restore

Brings dismissed candidates back; it needs an operator.

dormeto aws discovery restore <candidate>... [--dry-run] [--yes]
OptionValuesDefaultEffect
<candidate>a target group's ARN, a backend service's path or a pending one's unique namerequiredThe candidates, one or more.
dormeto aws discovery restore batch-tg

Table

restored 1 candidate: batch-tg

JSON

[
  {
    "id": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:targetgroup/batch-tg/0f1e2d3c4b5a6978",
    "account": "111122223333",
    "region": "eu-west-1",
    "cloud": "aws",
    "loadBalancer": "prod-alb",
    "loadBalancerArn": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:loadbalancer/app/prod-alb/50dc6c495c0c9188",
    "listener": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:listener/app/prod-alb/50dc6c495c0c9188/f2f7dc8efc522ab2",
    "priority": "10",
    "conditions": "host batch.example.com",
    "hosts": [
      "batch.example.com"
    ],
    "targetGroup": "batch-tg",
    "targetGroupArn": "arn:aws:elasticloadbalancing:eu-west-1:111122223333:targetgroup/batch-tg/0f1e2d3c4b5a6978",
    "backend": {
      "kind": "instance",
      "id": "i-0a1b2c3d4e5f60718"
    },
    "tags": {
      "team": [
        "web"
      ]
    },
    "rules": [],
    "eligibility": "eligible",
    "idleHours7d": 158.0,
    "requests7d": 96,
    "accountName": "prod",
    "ouPath": [
      "Root",
      "Workloads"
    ],
    "scope": "in",
    "scopeReason": "filter all",
    "status": "pending-onboarding",
    "statusReason": "eligible",
    "firstSeenAt": "2026-11-10T06:00:00.000Z",
    "lastSeenAt": "2026-11-14T06:00:00.000Z",
    "history": []
  }
]
  • It resolves IDs and names among the dismissed candidates.

discovery run

Asks for a discovery run now; it needs an operator.

dormeto aws discovery run [--wait] [--timeout <duration>] [--dry-run] [--yes]
OptionValuesDefaultEffect
--wait——Waits for the run to end.
--timeouta duration30mStops waiting; the work goes on.
dormeto aws discovery run --wait

Table

discovery run requested, waiting for it
last run    2026-11-14 10:00 UTC, manual by arn:aws:sts::111122223333:assumed-role/ops/ci, ok, 63s
scanned     7 account-regions, 0 skipped, 0 failed
candidates  3 pending-onboarding, 3 managed, 1 ineligible

JSON

{
  "lastRun": {
    "startedAt": "2026-11-14T10:00:02.000Z",
    "finishedAt": "2026-11-14T10:01:05.000Z",
    "trigger": "manual",
    "status": "ok",
    "targets": [
      {
        "account": "111122223333",
        "region": "eu-west-1",
        "status": "ok",
        "cloud": "aws"
      },
      {
        "account": "my-project",
        "region": "global",
        "status": "ok",
        "cloud": "gcp"
      }
    ],
    "emptyPairs": 5,
    "counts": {
      "pending-onboarding": 3,
      "managed": 3,
      "ineligible": 1
    },
    "lint": [],
    "google": {
      "projects": 1,
      "routers": 1,
      "added": 0,
      "updated": 1,
      "removed": 0,
      "errors": []
    },
    "by": "arn:aws:sts::111122223333:assumed-role/ops/ci"
  },
  "counts": {
    "pending-onboarding": 3,
    "managed": 3,
    "ineligible": 1
  }
}
  • A run refused because another is in progress: exit 1.
  • Ctrl-C stops waiting, not the run.

discovery status

Shows the last run, its candidates and its lint.

dormeto aws discovery status

No option of its own.

dormeto aws discovery status

Table

last run    2026-11-14 06:00 UTC, schedule, ok, 72s
scanned     7 account-regions, 0 skipped, 0 failed
candidates  3 pending-onboarding, 3 managed, 1 ineligible

JSON

{
  "lastRun": {
    "startedAt": "2026-11-14T06:00:00.000Z",
    "finishedAt": "2026-11-14T06:01:12.000Z",
    "trigger": "schedule",
    "status": "ok",
    "targets": [
      {
        "account": "111122223333",
        "region": "eu-west-1",
        "status": "ok",
        "cloud": "aws"
      },
      {
        "account": "my-project",
        "region": "global",
        "status": "ok",
        "cloud": "gcp"
      }
    ],
    "emptyPairs": 5,
    "counts": {
      "pending-onboarding": 3,
      "managed": 3,
      "ineligible": 1
    },
    "lint": [],
    "google": {
      "projects": 1,
      "routers": 1,
      "added": 0,
      "updated": 1,
      "removed": 0,
      "errors": []
    }
  },
  "counts": {
    "pending-onboarding": 3,
    "managed": 3,
    "ineligible": 1
  }
}
  • Times are in your time zone.