Skip to content

spawn footprint does not see EventBridge Scheduler schedules created by spawn schedule #1219

Closed

Description

@scttfrdmn

Found while fixing #1161. Checked in source; not run against AWS.

spawn footprint claims to inventory the control plane, but the only EventBridge resources it lists are rules on the default event bus (pkg/aws/footprint.go, ListRules). spawn schedule creates schedules in a different service, EventBridge Scheduler (pkg/scheduler/scheduler.go:73, scheduler.CreateScheduleInput), so none of them appear.

Name matching alone wouldn't find them either. They are named sched-YYYYMMDD-HHMMSS (GenerateScheduleID, pkg/scheduler/scheduler.go:67), in the default schedule group, which no entry in footprintNamePrefixes or footprintExactNames matches. A scan would have to identify them some other way: by their target (the scheduler-handler Lambda ARN), by their Spawn scheduled execution: description, or by the spawn-schedules DynamoDB table.

#1161 changed the help and footer to say that Scheduler schedules aren't scanned. This issue is about actually scanning them.

Severity: a schedule that outlives its intent keeps launching instances. Footprint is report-only, though, and spawn schedule list still lists schedules from the table, so this isn't a direct leak.

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions