lagotto command reference โ
lagotto watches for EC2 capacity and acts when it appears โ notify, hold, or launch via spawn โ and can maintain goal-driven fleets. This is the exhaustive command and flag reference. For an overview see the lagotto guide.
Generated reference
Each section below is generated from the lagotto CLI itself and synced from its releases, so the commands and flags match the shipped binary. Deprecated commands are left out. For task-oriented walkthroughs see the guides.
Global flags โ
These apply to every lagotto command.
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--accessibility | bool | Enable accessibility mode (implies --no-emoji) | ||
--account | string | Expected AWS account ID (optional guard) | ||
--history-table | string | lagotto-match-history | DynamoDB table name for match history | |
--lang | string | Language for output (en, es, fr, de, ja, pt) | ||
--no-emoji | bool | Disable emoji in output | ||
--output | -o | string | table | Output format (table, json; list also takes wide) |
--profile | string | AWS named profile (overrides SPORE_PROFILE/AWS_PROFILE and the shared config) | ||
--region | string | Default AWS region (overrides SPORE_REGION/AWS_REGION and the shared config) | ||
--verbose | -v | bool | Enable verbose output | |
--watches-table | string | lagotto-watches | DynamoDB table name for watches |
lagotto ack โ
Acknowledge an --until-landed watch.
An --until-landed watch has no TTL. Instead it pauses itself unless you acknowledge it: its deadline is (2+1) ร its --remind interval (21 days by default) from creation or the last acknowledgement. ack moves the deadline a full window ahead from now. A paused watch (status expired, reason unacknowledged) is resumed and hunts again.
The hosted poller reminds you on the watch's --notify channels after each of the first 2 intervals, and sends a final warning 24h before the pause; an ack starts the reminders again for the new deadline. ack warns when the deployed poller is too old to send reminders (run 'lagotto deploy' to upgrade it).
Only ack and extend count as an acknowledgement; list and status do not.
lagotto ack <watch-id>lagotto cancel โ
Cancel an active watch (w-โฆ), a watch group (its name, from 'lagotto watch --group'), or a scheduled launch (sl-โฆ, from 'lagotto launch').
A group: the group ends, and every active member is cancelled as a watch is, with the tombstone "group <name> cancelled". A member's launch still landing is not terminated (its TTL applies); a member's pending reservation is released.
A watch: any capacity reservation it recorded is released, and each email address it notifies is unsubscribed from the alerts topic unless another active watch still names it.
For a --action hold watch that already fired (status: matched), cancel releases the reservation it holds. The reservation is targeted and bills at the On-Demand rate until its 30-minute window ends, so release it as soon as you know you won't launch into it. The watch keeps its matched status. Releasing a reservation that already expired or was already released is not an error.
A scheduled launch: the launch is marked cancelled, then its EventBridge schedule and any boundary-retry schedules (-r<n>) are deleted. A schedule that is already gone is not an error. A one-shot launch that already fired is refused: there is nothing left to cancel. A --cron launch can be cancelled at any time; it stops future fires. Cancelling an already-cancelled launch deletes any schedule left behind. The record is in the region 'launch' ran in; pass --region if that is not your default.
lagotto cancel <watch-id | scheduled-launch-id | group> [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--region | string | AWS region of the watch or scheduled launch (default: from your AWS config) | ||
--yes | -y | bool | Skip the confirmation prompt |
lagotto deploy โ
Stand up lagotto's hosted capacity poller (DynamoDB, SNS, Lambda, EventBridge Scheduler) in your OWN AWS account, so watches are serviced server-side โ armed once, then hands-off โ instead of depending on a foreground 'poll --daemon' that dies when your laptop sleeps.
It downloads the published capacity-poller Lambda artifact for the given --version, uploads it to a bucket in your account, and then creates or converges the three poller resources with direct AWS API calls (#154): the SNS alerts topic, the poller Lambda and its EventBridge schedule. Re-runs are incremental โ a --version bump is a fast code-only update โ and a deploy never changes the schedule's on/off state, so it can't switch off a running poller.
The poller schedule is created DISABLED; the first 'lagotto watch' enables it (and the poller self-disables when no active watches remain).
CloudFormation is no longer used. The template is still shipped as an optional declarative path for IaC/enterprise consumers โ see DEPLOYMENT.md. If you have an older CloudFormation-deployed stack, this command adopts its resources automatically (they all have fixed names) and tells you how to detach the stack with --migrate-from-cloudformation.
Use --teardown to delete the poller, topic and schedule, and then the default artifact bucket lagotto-lambda-<account>-<region> with every object version in it. The bucket is deleted only when this account owns it and it carries the lagotto:managed=cli tag, which deploy writes when it creates the bucket and back-fills on an existing default-named bucket. A --lambda-bucket you supplied is never tagged or deleted.
lagotto deploy [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--environment | string | production | Environment tag (production, staging, development) | |
--lambda-bucket | string | S3 bucket for the Lambda artifact (default: lagotto-lambda-<account>-<region>, created if absent) | ||
--migrate-from-cloudformation | bool | Detach the legacy --stack-name stack from every resource it owns (retain-only change set, verify, delete) before deploying | ||
--region | string | AWS region (default: from your AWS config) | ||
--stack-name | string | lagotto | Legacy CloudFormation stack to detect/migrate from (the poller's own resources have fixed names) | |
--teardown | bool | Delete the poller, SNS topic, schedule and lagotto-managed artifact bucket instead of deploying them | ||
--version | string | dev | lagotto release version to pull the poller Lambda from | |
--yes | -y | bool | Skip the confirmation prompt |
lagotto doctor โ
Report drift between the hosted capacity poller deployed in your AWS account and what THIS lagotto binary expects. Read-only: it makes no change of any kind, and there is no --fix.
The headline check is the poller's runtime IAM policy. 'lagotto setup' applies it with PutRolePolicy, which REPLACES the policy wholesale with whatever grants are compiled into the binary that ran it. So upgrading lagotto without re-running 'setup' leaves the poller on the OLD permissions โ and running an OLDER lagotto's 'setup' reverts newer ones. Neither produces any signal until a watch fails, and for the hosted poller that failure is only visible in the poller's CloudWatch Logs. That has bitten four times (lagotto#149, #150, #151, #153).
doctor also reports a poller Lambda older than this CLI, missing tables/roles/ poller/topic/schedule, a schedule that is switched off while watches are active (the silent-death case: nothing is polling them), and a leftover CloudFormation stack.
It reports email delivery for --notify email: channels: an address on an active watch whose subscription is still pending confirmation (so receives nothing yet) or missing, a subscription no active watch needs, and any email subscription on the alerts topic with no filter policy, which receives every user's email events. 'lagotto notify-gc' removes unused subscriptions, and with --resubscribe subscribes missing ones.
For each active spawn or hold watch it checks default-subnet coverage (lagotto#256): the poller launches into the default VPC with no explicit subnet, so an AZ that offers the watch's type but has no default subnet is skipped, and the watch can never land there. Each such AZ is a warning, with the 'aws ec2 create-default-subnet' command that fixes it.
It lists every active --action notify watch as a warning (lagotto#283): notify is deprecated and will be removed in a later release, because it reports that a type is offered at or under the max price, not that there is capacity. Use --action hold or --action spawn instead. The check is omitted when there are none.
It checks that the shared EventBridge Scheduler invoke role's policy allows invoking THIS region's poller (lagotto#218: the role is IAM-global, and a deploy by lagotto older than v0.65.1 scoped it to the deploying region alone, so every other region's schedule failed silently). The policy is evaluated locally.
It lists every lagotto-lambda-<account>-<region> artifact bucket in the account (lagotto#264) and warns about each one in a region with no poller, an orphan a 'deploy --teardown' from before #264 left behind, with the command that deletes it. That needs s3:ListAllMyBuckets; without it the check is a warning.
It checks YOUR credentials (lagotto#232): the IAM policy simulator (iam:SimulatePrincipalPolicy) is asked whether the identity running doctor may call every action, on every resource, of the lagotto-cli-user policy 'lagotto setup' writes, and it lists what is denied with the command that attaches the policy. An assumed role is simulated as its IAM role, not the STS session. When the simulation cannot be made (no iam:SimulatePrincipalPolicy, the root user) the result is reported as unknown. Every outcome is a warning at most: the simulator is a model (it ignores session policies), so a denial is a lead.
Best effort, it also reports EventBridge Scheduler target errors in the last 24h (CloudWatch AWS/Scheduler TargetErrorCount for the poller's schedule group). That needs cloudwatch:GetMetricStatistics on your credentials; without it the check is a warning, never a failure.
Exit code is non-zero if any check FAILS, so it can gate CI. Warnings do not affect it. Use -o json for the machine-readable form, including the exact missing/extra IAM grants.
lagotto doctor [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--stack-name | string | lagotto | Legacy CloudFormation stack to look for (same meaning as on 'lagotto deploy') |
lagotto extend โ
Extend a watch's TTL to --ttl from now. An expired watch is reactivated.
For an --until-landed watch, which has no TTL, extend is the same as 'lagotto ack': it moves the acknowledgement deadline a full window ahead and resumes the watch if it paused. --ttl does not apply to it.
lagotto extend <watch-id> [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--ttl | string | 24h | New TTL from now (e.g., 24h, 7d) |
lagotto history โ
Show match history
lagotto history [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--watch-id | string | Filter by watch ID |
lagotto launch โ
Schedule an instance launch to fire at a clock time (--at), after a delay (--after), or on a recurring cron (--cron) โ as opposed to 'watch', which fires when capacity appears. The motivating case is launching into an EC2 Capacity Block at its reserved start time:
lagotto launch --reservation-id cr-0123456789abcdef0 --at-reservation-start
--spawn-config block.yaml
--reservation-id makes the instance launch into that reservation: lagotto reads it and sets reservation_id, capacity_block (for a Capacity Block), the instance type and the AZ to match. Setting reservation_id + capacity_block in the spawn config and passing --at also works.
This is driven by EventBridge Scheduler in the hosted poller stack, so it requires 'lagotto deploy' to have been run (the schedule targets the poller Lambda in your account). The launched instance always carries a TTL (#38).
lagotto launch [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--after | string | Fire once after this delay (e.g. 6h, 30m, 2d) | ||
--at-reservation-start | bool | Fire at the reservation's start time (derived from the reservation), retrying through the window open until the instance runs (requires --reservation-id) | ||
--at | string | Fire once at this RFC3339 time (e.g. 2026-07-01T08:00:00Z) | ||
--az | string | Availability zone (required to match a Capacity Block's AZ) | ||
--cron | string | Fire on this cron schedule (e.g. '0 9 ? * MON-FRI *') | ||
--fire-early | duration | 2m0s | With --at-reservation-start: fire this long before the window open so a Scheduler delay doesn't burn paid time | |
--if-exists | string | If an instance with this Name already exists at fire time: skip|launch|replace (default: skip for --at/--after, launch for --cron) | ||
--name | string | Instance Name tag (the overlap dedup key); defaults to the spawn config's name | ||
--region | string | AWS region to launch in (default: from your AWS config) | ||
--reservation-id | string | Capacity Reservation or Capacity Block id (cr-โฆ) to launch into: sets the spawn config's reservation_id (and capacity_block for a Capacity Block), and its instance type and --az from the reservation; a different value in the spawn config is an error | ||
--retry-interval | duration | 30s | With --at-reservation-start: how often to retry through the boundary until the launch succeeds | |
--spawn-config | string | lagotto spawn-config YAML (required; not spawn launch --config, see README for its keys โ unknown keys are rejected): a local path, an s3://bucket/key URI, or '-' for stdin. Referenced user_data_file / iam_policy_file are read now and stored inline. | ||
--stack-name | string | lagotto | (deprecated, ignored โ the poller has a fixed name) |
lagotto list โ
List your watches.
Besides each watch's definition, the table shows its heartbeat:
LAST POLL how long ago the poller last checked it ("4m", "2h"). An active watch is flagged "!" when that is over 15 minutes: the poller is disabled or failing, or its capacity search keeps failing. TRIES how many launch/hold/notify attempts it has made. GROUP the watch group it belongs to (lagotto watch --group): the first member to land cancels the others. "lagotto status <group>" shows the whole group. LAST ERR the class of its latest error: capacity, quota, terminal, unknown, or search (the capacity search itself failed).
EXPOSURE is what the watch can cost if it lands: "โค$X/hr" for spawn (a fleet's total), "30m@$X/hr" for a hold's reservation (billed even if unused), "none" for notify, "unknown" when lagotto has no price. "cap" means it is your --max-price, "*" a rate from the static price list (the note under the table says when it was collected and why), "?" that some types or regions have no price. The CLI never calls the live Price List.
Use -o wide for the full latest error, or -o json for every field. "lagotto status <watch-id>" shows the full errors and when they happened.
lagotto list [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--all | bool | Show all statuses, including expired, cancelled, completed and failed watches (default: active only) | ||
--mine | bool | Only show watches you created (matches your caller ARN) | ||
--project | string | Only show watches with this project label |
lagotto notify-gc โ
Reconcile the email subscriptions on the alerts topic (lagotto-capacity-alerts) with the active watches in this account and region.
lagotto subscribes each --notify email: address to the alerts topic, with a filter policy so the address receives only its own watches' events. When no active watch names an address any more, its subscription is removed: by the hosted poller at the start of each sweep, by 'lagotto cancel' for the cancelled watch, and by this command. Run it if the poller cannot (its runtime policy predates the grant: re-run 'lagotto setup'), or to clean up at once.
Only subscriptions lagotto created (they carry its filter policy) are removed. A subscription that is still pending confirmation has no ARN to unsubscribe by; SNS deletes it on its own within 3 days.
With --resubscribe it also subscribes every address an active watch names that has no subscription at all, for example one whose confirmation email was never clicked and that SNS has since deleted. SNS sends each a new confirmation email.
lagotto notify-gc [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--resubscribe | bool | Also subscribe active watches' addresses that have no subscription (sends a confirmation email) |
lagotto poll โ
Manually trigger a single poll of all active watches. This is for local testing; in production, polling runs on a Lambda schedule.
lagotto poll [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--daemon | bool | Loop in the foreground, polling on --interval, until no active watches remain | ||
--interval | duration | 5m0s | Polling interval in --daemon mode (e.g. 30s, 5m) | |
--mine | bool | Only poll watches created by the calling identity | ||
--no-lease | bool | Disable the per-watch processing lease (not recommended when multiple pollers run) | ||
--project | string | Only poll watches with this project label (default: $LAGOTTO_PROJECT) | ||
--watch | stringSlice | Only poll these watch IDs (comma-separated or repeated) |
lagotto setup โ
Provision lagotto's backend: the DynamoDB tables it uses to store watches and match history (lagotto-watches and lagotto-match-history by default; override with --watches-table / --history-table), and both CLI-owned IAM roles: the poller's execution role (lagotto-capacity-poller-role) with the runtime IAM policy that lets the poller spawn/hold/submit, and the role EventBridge Scheduler assumes to invoke the poller (lagotto-capacity-poller-scheduler-invoke). The roles are account-global, so one run in any region serves every region. Roles that already exist are reused; both policies are rewritten on every run. Setup prints each role it created.
The table creation is idempotent (existing tables are left untouched) and normally automatic: 'lagotto watch' creates the tables on first use. Run 'setup' explicitly to provision the backend ahead of time, or โ importantly โ after 'lagotto deploy' to grant the poller its permissions. 'deploy' creates only a minimal execution role (so the runtime Lambda can never self-escalate); 'setup', run by you, attaches the spawn/hold/SageMaker/scheduler policy. Until then the poller can only notify. 'lagotto teardown --iam-roles' deletes both roles once no region runs a poller.
It also writes the customer-managed policy lagotto-cli-user (lagotto#232): the least-privilege permissions the everyday commands need with YOUR credentials (watch, update, ack, extend, cancel, list, status, history, launch, notify-gc, doctor), resource-scoped to lagotto's tables, schedules, topic, roles and poller. It is generated from the CLI's own AWS calls (docs/reference/cli-iam-actions.md). Attach it to the group, users or roles that run lagotto. A re-run that changes it writes a new default version (deleting the oldest when IAM's limit of five is reached); an unchanged one is left alone. 'poll', 'setup', 'deploy' and 'teardown' are not covered: they need administrator permissions. s3:// spawn configs are readable only from the buckets you name with --config-bucket; those are carried forward on later runs. 'lagotto teardown --iam-roles' detaches and deletes the policy.
lagotto setup [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--config-bucket | stringArray | Let the lagotto-cli-user policy read s3:// spawn configs from this bucket (repeatable; s3:GetObject on its objects). Kept on later runs until revoked. | ||
--instance-role | stringArray | Authorize the hosted poller to use this IAM instance role when a watch's spawn_config names it in iam_role (repeatable). Without this the watch waits for capacity, matches, then dies at launch with AccessDenied. NOTE: this lets the poller write an inline policy to and attach a managed policy to that role, not merely pass it โ spawn adds its spored/SSM baseline to every role it launches with. | ||
--revoke-config-bucket | stringArray | Remove a bucket granted with --config-bucket (repeatable). Takes precedence over --config-bucket for the same name. | ||
--revoke-instance-role | stringArray | Remove a previously authorized instance role (repeatable). Takes precedence over --instance-role for the same name. |
lagotto status โ
Show details of a watch (w-โฆ).
Given a watch group's name (lagotto watch --group), show the group's state (hunting, landed by which member, or cancelled), who holds its launch slot, its cost exposure (the largest member's, since only one is meant to land), and each member's status, attempts and last error.
lagotto status <watch-id | group>lagotto teardown โ
Delete the DynamoDB tables lagotto uses: lagotto-watches, lagotto-match-history and lagotto-scheduled-launches (the last is created by 'lagotto deploy' or the first 'lagotto launch').
lagotto already tears these down automatically once there are no active watches or pending scheduled launches and the tables have drained (records age out via DynamoDB TTL). Use this to remove them explicitly.
By default it refuses to delete tables that still hold records, so you don't lose match history or a pending scheduled launch; pass --force to delete regardless. The scheduled-launches table is deleted only if it carries lagotto's lagotto:managed=cli tag; an untagged table of that name is left in place and reported. A table that does not exist is skipped.
Before deleting the tables it deletes the per-launch EventBridge Scheduler schedules 'lagotto launch' creates (lagotto-launch-sl-*): every one a scheduled-launch record names, and every one in the default schedule group with that prefix, including the poller's retry schedules and any whose record is gone. The scheduled-launches table is the only record of those schedules, and a cron schedule never removes itself, so deleting the table first would leave it firing indefinitely. A schedule that no longer exists is reported, not an error. With --force this cancels any pending scheduled launch. If the schedules cannot be listed or deleted (scheduler:ListSchedules, scheduler:DeleteSchedule), teardown stops before deleting any table.
--iam-roles also deletes the two IAM roles 'lagotto setup' and 'lagotto deploy' create (lagotto-capacity-poller-role and lagotto-capacity-poller-scheduler-invoke), with their policies. The roles are account-global and shared by the poller in every region, so this first checks every region enabled in the account and refuses, before deleting anything, while a poller still exists in any of them (remove each with 'lagotto deploy --teardown --region <region>') or when a region cannot be checked. --force does not override that check.
--iam-roles also deletes the customer-managed policy lagotto-cli-user that 'lagotto setup' writes for the people who run lagotto (lagotto#232). IAM refuses to delete an attached policy, so teardown first DETACHES it from every user, group and role it is attached to (each is printed; they lose those permissions), then deletes its non-default versions, then the policy. A policy of that name without lagotto's lagotto:managed=cli tag is left in place and reported.
lagotto teardown [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--force | bool | Delete even if the tables still contain records | ||
--iam-roles | bool | Also delete lagotto's two account-global IAM roles and the lagotto-cli-user policy (detached from everyone first); refused while a poller exists in any region |
lagotto update โ
Change what an existing watch hunts for (its instance types, regions, AZs, Spot, maximum price), who it tells (--notify), its spawn config, or its project, without cancelling it. The watch keeps its ID, its attempt count, last error, match history and email subscriptions, and keeps hunting throughout.
The updated watch is checked exactly as 'lagotto watch' checks a new one (including default-subnet coverage and the instance-role check), so an update cannot produce a watch 'watch' would refuse. Its action, service, owner, ID and deadline (TTL, or the until-landed acknowledgement deadline) cannot be changed: use 'lagotto extend' or 'lagotto ack' for the deadline, and a new watch for a different action.
When the search changes, the state the poller derived from the old search is cleared: the consecutive-failure count, the quota-refused candidates and the quota cap. An email address you add is subscribed (and must confirm); one you remove is unsubscribed unless another active watch names it; the others keep their confirmed subscriptions. The change is recorded as an 'updated' row in 'lagotto history'.
An update is refused while the poller is acting on the watch (try again in a moment), while a launch or hold it made is still landing, and while a SageMaker job it submitted is in flight. An expired or failed watch is only updated with --reactivate, which also makes it active again; it must still be before its deadline (run 'lagotto extend' first if not).
--require-quota applies 'watch --require-quota' to a fleet watch's updated search: the update is refused (exit status 3) only when the quota was read in every region and provably can't hold the fleet.
--dry-run shows the change, after every check, without writing anything.
lagotto update <watch-id> [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--add-notify | stringSlice | Add notification channels | ||
--add-region | stringSlice | Add regions to the watch's region list (comma-separated) | ||
--add-type | stringSlice | Add instance types or patterns to the pattern (comma-separated) | ||
--azs | stringSlice | Replace the availability zones (comma-separated; '' = all AZs in the region) | ||
--dry-run | bool | Show the change without writing anything | ||
--instance-type | string | Replace the instance-type pattern (wildcards and comma-separated rungs, as for 'watch') | ||
--max-price | float64 | Replace the maximum price per hour (0 = any) | ||
--no-spot | bool | Watch for On-Demand capacity | ||
--notify | stringSlice | Replace the notification channels (email:, webhook:, sns:; '' = none) | ||
--project | string | Replace the project label ('' = none) | ||
--reactivate | bool | Allow updating an expired or failed watch, and make it active again | ||
--regions | -r | stringSlice | Replace the regions (comma-separated; '' = all enabled regions) | |
--remove-notify | stringSlice | Remove notification channels | ||
--remove-region | stringSlice | Remove regions from the watch's region list (comma-separated) | ||
--require-quota | bool | For a --maintain fleet watch: refuse the update (exit status 3) when the account's EC2 vCPU quota, read in every region of the updated watch, provably can't hold its workers, as 'watch --require-quota' does. An unreadable quota is unknown, not zero: the update then goes ahead, with a note. | ||
--spawn-config | string | Replace the spawn config (--action spawn watches): a local path, s3://bucket/key or '-' for stdin, read and stored as 'watch' does | ||
--spot | bool | Watch for Spot capacity |
lagotto version โ
Display version, build date, and git commit information for lagotto.
lagotto versionlagotto watch โ
Watch for EC2 instance availability across regions and AZs.
The pattern supports wildcards: "p5.*" matches all p5 sizes, "g5.xlarge" is exact; a comma-separated list matches any of several types (e.g. "g6.xlarge,g6.2xlarge"). When capacity is found matching your criteria, the configured action is taken.
lagotto watch <instance-type-pattern> [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--action | string | notify | Action on match: spawn (launch it), hold (reserve it), or notify (deprecated: offering only, not a capacity check). The notify default is deprecated too: pass --action explicitly | |
--azs | stringSlice | Availability zones to pin/order within the region(s), comma-separated (e.g. us-west-2b,us-west-2c). Empty = all AZs. AZ breadth is free (same-region data locality), so all AZs are tried each poll. | ||
--group-on-extra | string | With --group: what happens to this member's launch if it lands after the group was already won: terminate (default; a hold's reservation is released) or keep | ||
--group | string | Join (or create) a watch group: the first member to land wins and every other member is cancelled. Members may differ in pattern, regions, Spot and spawn config; --action spawn or hold only, not with --maintain, --until-landed or --service sagemaker. 'lagotto status <group>' and 'lagotto cancel <group>' act on the whole group. | ||
--maintain | int | Goal-driven fleet: maintain this many workers (relaunching toward the goal, even from zero) until --until holds. Requires --action spawn and --regions. 0 = single-shot (default). | ||
--max-price | float64 | Maximum acceptable price per hour (0 = any) | ||
--notify | stringSlice | Notification channels (e.g., email:user@example.com, webhook:https://..., sns:<topic-arn>). An email address is subscribed to the alerts topic and must confirm by clicking the link in the AWS Notification email before anything is delivered. | ||
--project | string | Project label for scoping a local 'poll --daemon --project' in a shared account (default: $LAGOTTO_PROJECT) | ||
--regions | -r | stringSlice | Regions to watch (comma-separated; empty = all enabled). Widening across regions can break data co-location (cross-region egress) โ prefer --azs within your data's region first. | |
--remind | string | 7d | With --until-landed: the reminder interval (1h to 30d). You are reminded after each of the first 2 intervals and warned 24h before the pause; the watch pauses 3 ร this after creation or the last ack. | |
--require-quota | bool | With --maintain: refuse to create the watch (exit status 3) when the account's EC2 vCPU quota, read in every --regions region, provably can't hold --maintain N workers. A quota that can't be read is unknown, not zero: the watch is then created anyway, with a note. | ||
--sagemaker-config | string | YAML/JSON file with the SageMaker job definition (required for --service sagemaker) | ||
--service | string | ec2 | Capacity service: ec2, or sagemaker (submits your SageMaker job for ml.* types) | |
--spawn-config | string | lagotto spawn-config YAML (required for --action spawn; not spawn launch --config, see README for its keys โ unknown keys are rejected): a local path, an s3://bucket/key URI, or '-' for stdin. Any user_data_file / iam_policy_file it references is read now and stored inline, so a hosted poller can launch it with no access to this machine. | ||
--spot | bool | Watch for Spot capacity (default: On-Demand) | ||
--ttl | string | 24h | How long to keep watching (e.g., 24h, 7d) | |
--until-landed | bool | Keep hunting with no TTL until the launch (--action spawn) or hold lands. The watch pauses itself unless you run 'lagotto ack <id>' within (2+1) ร --remind (21d by default). Needs a --notify channel; not with --ttl, --maintain, --until, or --action notify. | ||
--until | string | Fleet completion condition, re-checked each poll: 's3-empty: s3://b/manifest minus s3://b/done/', 'http-200: https://โฆ', or 'shell: <cmd>' (shell = local daemon only). When true the fleet retires. | ||
--yes | -y | bool | Skip the confirmation prompt that --until-landed --action spawn/hold shows (required when stdin is not a terminal) |