Skip to content

spawn launch --ami auto: "Invalid id: auto" error — help text says it auto-detects AL2023 #15

Closed

Description

@scttfrdmn

Summary

spawn launch --help says --ami string AMI ID (auto-detects AL2023) implying that omitting or passing a special value triggers auto-detection. Passing --ami auto produces:

failed to launch instance: operation error EC2: RunInstances, ... api error InvalidAMIID.Malformed: Invalid id: "auto" (expecting "ami-...")

Steps to reproduce

spawn launch my-instance --instance-type t4g.small --ami auto -y

Expected

Either --ami auto resolves to the latest AL2023 AMI for the target region/architecture, or the help text is updated to clarify that --ami must always be a real ami-* ID and auto-detection only happens when the flag is omitted entirely.

Context

https://github.com/scttfrdmn/aws-microbiome-demo — the bake script was passing --ami auto based on the help text description. Discovered on 0.36.3.

Activity

  1. added
    bug
    on May 30, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions