You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spored-instance-role should include ssm:GetParameter for AMI auto-detection #38
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
spawn 0.36.9
nf-spawn dispatches FETCH_FASTQ tasks via spawn launch on an EC2 instance
The instance uses spored-instance-role which lacks ssm:GetParameter
Activity
scttfrdmn commentedon Oct 19, 2026
Duplicate of #39, which tracks the complete permission set for nested spawn (this
ssm:GetParametergrant is item 3 on its list).