Skip to content

Leftovers of removed autoscale (#772): a dangling disabled event-source mapping and stale references to spawn-autoscale-groups-production #1434

Closed

Description

@scttfrdmn

Autoscale was removed in #772, and the spawn-autoscale-groups-production table no longer exists in the infra account (describe-table → ResourceNotFoundException, 2026-10-29). Several things still point at it. Under the no-clutter principle each needs a deleter.

Live (infra account, us-east-1):

  • Event-source mapping 0ea19b0f-85c4-4709-b8c3-e10cf7588494 on spawn-dashboard-websocket-processor, source table/spawn-autoscale-groups-production/stream/2026-02-16T23:07:04.393. State Disabled, StateTransitionReason: Unrecoverable error, LastProcessingResult: PROBLEM: Stream is closed, last modified 2026-10-10. It costs nothing, but it is clutter and shows up in every deploy review.

In the repo (origin/main):

  • lambda/dashboard-websocket-processor/main.go:149: a case "spawn-autoscale-groups-production" branch.
  • lambda/dashboard-api/scripts/setup-dashboard-lambda-role.sh:170: ProcessorStreams still grants DescribeStream/GetRecords/GetShardIterator on the autoscale table's stream.
  • lambda/dashboard-websocket/scripts/setup-event-source-mappings.sh:19 and enable-streams.sh:18: would recreate the mapping, or try to.
  • lambda/dashboard-api/models.go:243-260: AutoScaleGroupInfo and GroupDetailInfo types. Check for readers before removing, per the reachability-vs-intent rule.
  • lambda/dashboard-api/scripts/backfill-autoscale-user-ids.py, and the /api/autoscale-groups hint in scripts/setup-all.sh:71.
  • The umbrella web UI (spore-host/web/js): check for an autoscale view that calls a now-missing endpoint.

Fix: remove the code references and the stream grant, so the role script converges on a narrower policy. Make setup-event-source-mappings.sh delete mappings whose source table no longer exists (the named deleter), and run it once to remove 0ea19b0f…; that is a live step, so the owner approves it at deploy time. Gate: the processor's table switch, the role script's stream list and the mapping script's table list must all agree, and must name only tables that exist in the repo's setup scripts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component:spawntype:infra

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions