Skip to content

EC2 Tags โ€‹

spore.host tags every instance it launches with spawn:* tags. These tags drive lifecycle management, filtering, and cost tracking.

Core tags โ€‹

Written on every instance spawn launches.

TagExampleDescription
spawn:managedtrueMarks this instance as spawn-managed. Used to filter in spawn list.
spawn:roottrueAlways true on every instance spawn launches.
spawn:created-byspawnAlways the literal spawn, not a user name. Use spawn:iam-user for who launched it.
spawn:iam-userarn:aws:iam::123456789012:user/aliceARN of the IAM identity that launched the instance.
spawn:account-id123456789012AWS account the instance runs in.
spawn:account-base361kpqzg2cThe account ID in base 36, used as the account segment of the DNS name.
spawn:version0.135.0Version of spawn that created the instance.
spawn:launch-time2026-04-30T09:00:00ZOriginal launch time (RFC 3339). Unlike EC2's LaunchTime, it doesn't reset when a stopped instance starts again, so it anchors the TTL.

spawn:created (an RFC 3339 timestamp) and spawn:arch are not instance tags. spawn:created is on the network resources spawn creates (security groups, placement groups), where the reaper reads it to judge their age; spawn:arch is on AMIs spawn builds.

Lifecycle tags โ€‹

TagExampleDescription
spawn:ttl12hTotal time-to-live, measured from spawn:launch-time.
spawn:ttl-deadline2026-04-30T21:00:00ZAuthoritative termination deadline, written together with spawn:ttl. This is what spored and the TTL reaper enforce. It keeps counting while the instance is stopped; spawn extend moves it.
spawn:on-completeterminateAction when the workload signals completion: terminate, stop, or hibernate. It has nothing to do with the TTL: TTL expiry always terminates.
spawn:completion-file/tmp/SPAWN_COMPLETEFile whose appearance signals completion. Written only when spawn:on-complete is set.
spawn:idle-timeout30mStop (or hibernate) if idle for this duration. Terminates instead when spawn:terminate-on-idle is set.
spawn:hibernate-on-idletrueHibernate instead of stopping when idle (set by --on-idle hibernate).
spawn:terminate-on-idletrueTerminate instead of stopping when idle. Takes precedence over spawn:hibernate-on-idle. spawn sets it on spawn service instances, pool workers and spawn burst members, which have nothing to come back to. Needs spored v0.136.0 or later; an older spored stops the instance.
spawn:session-timeout30mAuto-logout for idle shells (sets TMOUT for login shells). 0 disables it. It doesn't stop or terminate the instance.
spawn:cost-limit50.0000Terminate when cumulative compute + EBS cost reaches this amount (USD). Compute accumulates across stop/resume; EBS accrues on wall-clock time, including while stopped. FSx/EFS are not counted.
spawn:price-per-hour0.192000On-demand hourly rate, written at launch. spored computes cost and enforces spawn:cost-limit from it.
spawn:price-sourceliveWhere spawn:price-per-hour came from: live (the AWS Price List, at launch) or static (truffle's built-in fallback table).
spawn:compute-seconds5400Cumulative running seconds across stop/start cycles. Written by spored every few minutes.
spawn:last-heartbeat2026-10-19T14:03:00ZWritten by spored about once a minute while it runs, on Linux and Windows. spawn launch waits for it to confirm spored came up, and the reaper reports running instances whose heartbeat is more than 10 minutes old.

spawn:ttl-remaining is no longer written: spawn stopped writing it when stopping an instance. You may still see it on instances stopped by an older spawn; it's ignored apart from a notice on spawn start.

Naming, DNS and purpose โ€‹

TagExampleDescription
Nameml-trainingHuman-readable instance name (standard AWS Name tag).
spawn:dns-nameml-trainingThe DNS label to register, not a full hostname. spored registers <label>.<account-base36>.<domain> on start and removes it on shutdown. Absent with --no-dns.
spawn:dns-domainlab.example.orgZone to register under instead of spore.host (--dns-domain). Written only with spawn:dns-name.
spawn:dns-endpointhttps://abc.lambda-url.us-east-1.on.aws/Custom DNS updater to register with (--dns-api-endpoint). Written only with spawn:dns-name.
spawn:purposepipelineA short machine-readable kind, set by spawn on resources it creates for its own use (for example pipeline, ssh-key, warm-build-seed). Not a free-text description.

Notification tags โ€‹

These tags configure chat delivery through spore-bot, which is experimental and not part of 1.0 (the hosted spore-bot is decommissioned; see Lifecycle Notifications).

TagExampleDescription
spawn:slack-workspace-idT03NE3GTYWorkspace to notify (--slack-workspace). Also used for Teams and Discord workspace IDs.
spawn:notify-urlhttps://<id>.lambda-url.us-east-1.on.awsThe spore-bot Lambda endpoint spored posts lifecycle events to. Set with spawn:slack-workspace-id; SPORE_NOTIFY_URL overrides it for self-hosted bots.
spawn:notify-command/sporeSlash command that routes notifications to the right bot app config. spawn sets it to /spore; there is no launch flag for it.
spawn:notify-platformteamsChat platform: slack (the default when absent), teams, or discord (--notify-platform).

Parameter sweeps โ€‹

TagExampleDescription
spawn:sweep-idsweep-abc123Identifies which sweep this instance belongs to.
spawn:sweep-namelr-searchHuman name of the sweep.
spawn:sweep-size16Total number of instances in the sweep.
spawn:sweep-index3Zero-based index of this instance in the sweep.
spawn:steppreprocessWorkflow step name, from a step key in the sweep parameters.
spawn:param:<key>0.001One tag per sweep parameter, in name order, up to AWS's 50-tag limit. The sweep manifest stays authoritative.

Job arrays โ€‹

TagExampleDescription
spawn:job-array-idarray-xyzJob array identifier.
spawn:job-array-namepreprocessHuman name of the array.
spawn:job-array-size8Total instances in the array.
spawn:job-array-index2Zero-based index of this instance.

MPI clusters โ€‹

TagExampleDescription
spawn:mpi-enabledtrueThis instance is part of an MPI cluster.
spawn:mpi-processes-per-node4Number of MPI processes to run on each node.

Pipelines โ€‹

TagExampleDescription
spawn:pipeline-idpipe-def456Pipeline identifier.
spawn:stage-idstage-ghi789Current pipeline stage.
spawn:stage-index1Stage index (0-based).

Teams โ€‹

TagExampleDescription
spawn:team-idteam-jklTeam this instance belongs to.
spawn:team-namegenomics-labHuman name of the team.

FSx (Lustre integration) โ€‹

On the instance:

TagExampleDescription
spawn:fsx-idfs-0abc1234FSx filesystem ID โ€” written at launch so instance scripts can auto-mount without hardcoding the ID.
spawn:fsx-pendingfs-0abc1234A filesystem still being created (--fsx-create). spored waits for it, mounts it, then replaces this tag with spawn:fsx-id.
spawn:fsx-mount-nameq5pdvb4vPer-filesystem Lustre mount name (from LustreConfiguration.MountName). Required for the mount command: <dns>@tcp:/<mount-name>.
spawn:fsx-mount-point/fsxMount point for the FSx filesystem.
spawn:fsx-s3-import-paths3://bucket/input/S3 path FSx imports from.
spawn:fsx-s3-export-paths3://bucket/output/S3 path FSx exports to.

On the filesystem itself (--fsx-create), spawn also writes spawn:fsx-stack-name, spawn:fsx-storage-capacity (GiB), spawn:fsx-s3-bucket and spawn:fsx-created.

EFS integration โ€‹

TagExampleDescription
spawn:efs-idfs-0def5678EFS filesystem ID โ€” written at launch so instance scripts can auto-mount.
spawn:efs-mount-point/efsMount point for the EFS filesystem.

Filtering instances โ€‹

Use tags with spawn list or the AWS CLI:

sh
# List only the instances one IAM identity launched
spawn list --tag spawn:iam-user=arn:aws:iam::123456789012:user/alice

# AWS CLI: find all spawn-managed instances
aws ec2 describe-instances \
  --filters "Name=tag:spawn:managed,Values=true" \
  --query 'Reservations[].Instances[].{ID:InstanceId,Name:Tags[?Key==`Name`].Value|[0]}'

S3 object tags on task outputs โ€‹

Outputs written by spawn task run carry S3 object tags that record what they would cost to regenerate, so S3 lifecycle rules can tier them. See Keeping results for how they're used.

TagExampleDescription
spawn:regen-classcheapcheap, moderate or expensive, from the run's cost and duration. Absent when no rate was known.
spawn:regen-usd0.0500What the run cost, in USD.
spawn:regen-hours0.5000How long the run took, in hours.
spawn:run-id3f6c2a1e-โ€ฆID of the run that wrote the output (a UUID).
spawn:retainfalseAlways false at upload. Set it to true (with spawn results retain) to keep an output out of every tiering rule.
spawn:regenerabletruePresent only when the task spec opted in to future deletion.