Skip to content

launch: post-launch spored verification requires SSM agent; fails (exit 1) on Rocky/RHEL AMIs without amazon-ssm-agent #1053

Closed

Description

@scttfrdmn

Summary

On AMIs that don't ship amazon-ssm-agent (official Rocky 8 and 9 Base AMIs), spawn launch waits 4m30s, then exits 1 with:

instance i-0e60771fbdc1c2795 launched but spored never came up — it has NO TTL/idle safety net ...
SSM agent never came online (can't verify spored): instance ... did not register with SSM (PingStatus=Online) within 4m30s

The check is at cmd/launch_posthook.go:228 and pkg/aws/ssm.go:245.

The verdict is about spored, but the evidence is about the SSM agent. The two are independent. On the same Rocky 9 instance, SSH worked and showed spored failing for a separate reason (#1052). On a Rocky host where spored is healthy, the launch would still exit 1.

Repro

spawn launch ssm-repro --region us-west-2 --instance-type t3.small \
  --ami ami-00c356e7c787b9fc0 --ttl 20m --cost-limit 0.10 --command 'true' -y ; echo $?   # 1

Suggestions

  • Install amazon-ssm-agent in the bootstrap when it's missing on dnf-based AMIs. The AWS RPM URL works on EL8 and EL9.
  • Or verify spored by another channel, such as its heartbeat tag (agent.go writes heartbeat tags each tick), when SSM is unavailable.

Downstream workaround

spore-host/sclero installs the SSM agent from --user-data. The workaround is marked and removable.

Activity

  1. added this to the v0.136.0 milestone on Oct 19, 2026
  2. scttfrdmn commented on Oct 19, 2026

    @scttfrdmn
    ContributorAuthor

    Decision needed (milestone planning, 2026-10-18): for spored verification on AMIs without the SSM agent, should the bootstrap install amazon-ssm-agent, or should verification read spored's heartbeat tag?

    Default if there's no objection: the heartbeat tag. It needs no agent and no extra caller permission, and it's what spored already writes.

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