Repository navigation
Description
Context
Split out from #83 (Windows ISO → AMI via spawn image import). The import path
is proven: spawn image import produced a real Windows 11 Enterprise AMI
(Windows BYOL, UEFI, TPM 2.0) that boots cleanly — EC2 instance + system
status checks both ok. This issue is about the launch path on such an AMI,
not the import.
Symptom
spawn launch <name> --ami <imported-win11-ami> --os windows --ttl 1h launches
and the instance boots, but SSM never registers (aws ssm describe-instance-information returns nothing) within ~12 min, so the Windows
management path (and spored-over-SSM) doesn't come online. Observed on a
validation run of ami-0eebeaa9c2079e6d2 / ami-01bad5e9aa36c0f53 in the dev
account (i-060d23a8d44f76be9). SSH-on-22 + DNS-registration also failed (expected:
this is a custom client AMI, not a stock Windows Server AMI).
What's known / suspects
- Image Builder's
import-disk-imagebakes the SSM agent onto the output AMI,
and the launched instance got thespored-instance-profile. So either:- the instance profile lacks
AmazonSSMManagedInstanceCorefor this launch
path (fix(iam): attach SSM core to the spored instance role (#77) #89 fixed it for the spored role generally — verify it's attached here), or - the SSM agent on a Sysprep'd client image isn't auto-started / takes much
longer than 12 min on first boot, or - egress/VPC endpoints (ssm, ssmmessages, ec2messages) aren't reachable from the
launch subnet.
- the instance profile lacks
- This is a client (Win11) AMI; spawn's Windows support so far ([exploration] Windows AMI support — what's needed for connection & monitoring? #55, Windows spored — cross-platform lifecycle agent as a Windows Service #77) was
validated against stock Windows Server AMIs + black3. The imported client AMI is
a new surface.
Acceptance
- A
spawn launch --os windowsfrom an imported Win11 client AMI reaches SSM
online (PingStatus=Online) and spored installs + self-manages (TTL terminates),
OR - We document a clear prerequisite (instance-profile policy / VPC endpoints /
expected first-boot delay) andspawn launchsurfaces it instead of silently
not registering.
Cost note
Repro requires launching a Windows instance — use --ttl and leak-check after
(per the standing rule). Don't leave instances running while debugging.
Refs #83.
Activity
fix(windows): apply m7i.xlarge default before launchMode (#95)
feat(windows): full connect — launch defaults, RDP, SSH-over-SSM (#95) (
docs: add Windows beta tester step-by-step guide (#95) (#100)