Repository navigation
SSM-first Linux launch/connect (#1296); terminate on failed launch by default (#1298) - #1303
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
This was referenced Oct 25, 2026
…1296) spawn launch no longer waits for SSH unless --wait-for-ssh is given, and verifies spored either way. A requested wait is refused at once when no attached security group can admit tcp/22. spawn connect goes straight to SSM when the groups admit no SSH. Windows unchanged.
…ep-on-error (#1298) A launch that fails once the instance exists (spored never came up, WaitForRunning, public-IP lookup, ephemeral FSx, anything else) now terminates the instance and its ephemeral FSx by default. --keep-on-error keeps it with a no-safety-net warning; --terminate-on-error is deprecated. Every launch warns when no reaper positively scans the launch region.
scttfrdmn
force-pushed
the
feat/1296-ssm-first
branch
from
October 25, 2026 05:31
9104f34 to
ef6cc2c
Compare
This was referenced Oct 25, 2026
Merged
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.
Fixes #1296
Fixes #1298
SSM-first Linux access (owner decision: option 2, no security groups created).
spawn launch(Linux) no longer waits for SSH by default (--wait-for-sshnow defaults off). spored is verified either way, via the existing heartbeat-tag / SSM path, which never needed SSH. An explicit--wait-for-ssh=falsekeeps its documented "skip both" meaning, which the e2e harness and scripts rely on to return right after RunInstances.--wait-for-sshwaits as before, except that when no attached security group can admit tcp/22 the launch says so at once, naming the groups and pointing atspawn connect(SSM) or--security-group-ids. The check is generous: any ingress rule covering tcp/22 or all traffic, from any CIDR, IPv6 range, prefix list or other group, counts as possibly reachable. The one source not counted is a group referencing itself. That is the stock default-VPC rule, and a self-reference never matches traffic to a public IP. A failed read (for example, DescribeSecurityGroups denied) decides nothing.ssh user@<dns>line from the summary.spawn connect(Linux): when the groups admit no SSH, it goes straight to SSM, before any key lookup or injection.--ssh(previously Windows-only) forces SSH. A one-shot-- <cmd>on such an instance fails at once with the reason, because the SSM path is an interactive session that would ignore the command.runPostLaunchChecks(cmd/launch_postchecks.go) with a call-counting seam. Newaws.InstancePortIngress/EvaluatePortIngress(api snapshot updated).Second commit: #1298, terminate on a failed launch by default
This is in the same PR because it changes the same post-launch code.
launchWithProgressnow has a namederrand defersfinishLaunchbefore RunInstances, so every return after the instance exists is covered. Any failure after RunInstances terminates the instance by default: spored not up or not verifiable, WaitForRunning, the public-IP lookup, the ephemeral FSx, or anything else. The ephemeral FSx the launch created is deleted with it. Cleanup runs on a context detached from the launch's, bounded at 2 min.--keep-on-errorkeeps the instance and warns that it has no TTL/idle/cost-limit enforcement.--terminate-on-erroris still accepted and deprecated (it is now the default).--terminate-on-error=falsekeeps the instance, as it always did. Passing both is an error.config.Region(--region), not the client's default region.