Repository navigation
fix(iam): attach SSM core to the spored instance role (#77) - #89
Merged
Merged
Conversation
`spawn connect` on Windows uses SSM (Session Manager + RunCommand) — there's no SSH-user model — but the default spored-instance-role had no SSM permissions, so a normally-launched Windows instance never registered with SSM and connect couldn't reach it. Attach AmazonSSMManagedInstanceCore in SetupSporedIAMRole. Idempotent; AccessDenied is logged non-fatally (restricted IAM still launches, just without SSM fallback). Benefits Linux too: enables the no-public-IP SSM connect fallback that connect.go already attempts. Verified end-to-end on real Windows EC2: with this role, spored registered with SSM, read its config from EC2 tags (TTL=15m via DescribeTags), registered DNS, ran the monitor, and self-terminated at the TTL deadline. Refs #77.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
scttfrdmn
added a commit
that referenced
this pull request
Jun 9, 2026
Patch release for the two fixes that make Windows spored actually install and self-manage on EC2 (found in v0.38.0 real-EC2 verification): - #88: install the AWS CLI before the S3 download (stock Windows AMI has none). - #89: attach SSM core to the spored instance role (Windows connect needs SSM). Verified end-to-end on real Windows EC2: boot → CLI install → spored download from S3 → Windows Service → reads config from tags → self-terminates at TTL.
This was referenced Jun 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
spawn connecton Windows uses SSM (Session Manager + RunCommand) — no SSH-user model — but the defaultspored-instance-rolehad no SSM permissions, so a normally-launched Windows instance never registered with SSM and connect couldn't reach it. (Found during #77 Stage 5 real-EC2 verification.)Attach
AmazonSSMManagedInstanceCoreinSetupSporedIAMRole. Idempotent; AccessDenied is logged non-fatally. Benefits Linux too (enables the no-public-IP SSM connect fallbackconnect.goalready attempts).Verified end-to-end on real Windows EC2
With this role, a normally-launched Windows instance:
Config: TTL=15m0svia DescribeTags),terminated).That completes the #77 Windows-spored verification: boot → CLI install → spored download from S3 → service → monitor → self-terminate, all on real Windows. Zero leaks.
Refs #77.