Skip to content

Windows launches leave their per-instance spawn-windows-<name> security group behind after termination #1623

Closed

Description

@scttfrdmn

Seen twice in live checks (2026-11-13, v0.165.0 and the #1617 branch). spawn launch --os windows creates a per-instance security group, spawn-windows-<name>, tagged spawn:managed=true and spawn:purpose=windows. After the instance terminated, whether by aws ec2 terminate-instances or TTL, the group was still there and had to be deleted by hand.

The TTL reaper's network sweep (lambda/ttl-reaper/netresources.go) is a backstop, but the group should go with the instance.

Fix: spawn terminate and spored's self-terminate path delete the group once its last ENI detaches, using its own named deleter, as the egress proxy groups already do in egress-proxy delete. Also confirm the reaper reaps orphaned spawn-windows-* groups, and add a test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions