Skip to content

spored-instance-role should include ssm:GetParameter for AMI auto-detection #38

Closed as not planned

Description

@scttfrdmn

Summary

When spawn auto-detects the latest AL2023 AMI (when --ami is omitted), it calls ssm:GetParameter on /aws/service/ami-amazon-linux-latest/.... The spored-instance-role that spawn creates doesn't include this permission, so spawned instances that call spawn themselves (e.g. via nf-spawn) can't launch sub-instances.

Error

failed to get AMI from SSM: operation error SSM: GetParameter, AccessDeniedException: 
User: arn:aws:sts::...:assumed-role/spored-instance-role/... is not authorized to perform: 
ssm:GetParameter on resource: arn:aws:ssm:us-east-1::parameter/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-arm64

Expected

spored-instance-role should include ssm:GetParameter on arn:aws:ssm:*::parameter/aws/service/ami-amazon-linux-latest/* so that instances running spawn can also spawn sub-instances with AMI auto-detection.

Workaround

Manually add the SSM policy to spored-instance-role, or always pass --ami ami-xxx explicitly.

Context

Activity

  1. added
    bug
    on Jun 3, 2026
  2. added
    area:infra
    on Jun 12, 2026
  3. scttfrdmn commented on Oct 19, 2026

    @scttfrdmn
    ContributorAuthor

    Duplicate of #39, which tracks the complete permission set for nested spawn (this ssm:GetParameter grant is item 3 on its list).

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

    area:infrabug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions