Skip to content

spawn logs ignores its cache once EC2 forgets the instance; --region doesn't narrow lookups; doctor/footprint hint errors #1139

Closed

Description

@scttfrdmn

Found while writing the logs and account-health guides for spore-host/spore-host#585 part 3. Checked in source.

  1. spawn logs can't use its console cache after EC2 stops listing the instance.
    • showTerminatedLog calls findRecentlyGone first and errors "no instance found…" (cmd/logs.go:137-141), before the cache read in consoleOutputCached (:195-199).
    • The cache exists to keep the log after AWS drops it, which is exactly when it can't be reached.
    • Fix: look the cache up by name or ID first.
  2. --region doesn't narrow logs/dns/connect lookups. resolveInstance calls ListInstances(ctx, "", "") (cmd/utils.go:177), which searches every region despite the Two inert flags: pipeline launch --wait never waits, and logs --region is dropped while shadowing the global --region #807 note.
  3. The IAM baseline lacks ec2:GetConsoleOutput, which spawn logs needs after termination. The site now lists it as an optional addition.
  4. spawn doctor (pkg/doctor/doctor.go):
    • The VPC hint says --subnet; the flag is --subnet-id (:228).
    • The Route 53 hint says "--dns subdomains won't work" (:252), but DNS goes through the updater, not the user's Route 53.
    • When credentials fail, the skipped list leaves out "Nitro fleet" (:182).
    • Only the default VPC is checked, so an account with no default VPC fails even when every launch passes --subnet-id.
  5. spawn footprint:
    • Its help and footer (cmd/footprint.go:42, :194) call scheduler-handler a blind spot, but pkg/aws/footprint.go:82 matches it.
    • "EventBridge schedules" is really only default-bus rules, and only the first page (:182).
    • --all-regions scans the account's enabled regions, not "every region spawn supports".

Activity

  1. scttfrdmn commented on Oct 19, 2026

    @scttfrdmn
    ContributorAuthor

    Split into: #1160 (logs cache order, --region ignored, GetConsoleOutput not in baseline, items 1-3), #1161 (doctor/footprint hints, items 4-5). Closing as split.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions