Skip to content

launch: auto-AMI fails for GPU instance types (ParameterNotFound) despite docs claiming GPU-variant detection #384

Closed

Description

@scttfrdmn

Version: spawn 0.78.0

Docs claim (spawn launch --help / top-level help):

Auto-detects AMI (Amazon Linux 2023, including GPU variants)

Actual: launching a GPU instance type without --ami fails immediately:

$ spawn launch g6-test --instance-type g6.4xlarge --region us-east-1 --command 'echo hi' -o json
failed to get AMI from SSM: operation error SSM: GetParameter, https response error StatusCode: 400, ... ParameterNotFound:

Same for g6e.2xlarge, g7e.2xlarge. CPU types (c8i/c8a/c8g.24xlarge) auto-detect fine in the same account/region.

Cause (guess): the SSM parameter path spawn queries for the auto-AMI doesn't have a GPU/NVIDIA variant for these types — there is no /aws/service/ami-amazon-linux-latest/*nvidia* param, and AL2023 doesn't publish a GPU AMI via that path. GPU instances need e.g. the Deep Learning Base OSS Nvidia Driver GPU AMI (Amazon Linux 2023) (found via ec2 describe-images --owners amazon, not the AL2023 SSM path).

Ask: either (a) resolve a GPU-capable AMI (DLAMI / AL2023-NVIDIA) when the instance type is a GPU family and auto-AMI is used, or (b) if that's out of scope, fail with a clear message ('GPU instance types require --ami; auto-detect only supports CPU AL2023') and update the help text so it doesn't promise GPU-variant auto-detection.

Workaround (in use): pass --ami <gpu-ami-id> explicitly for GPU cells. Fine, just not what the help advertises.

Context: GROMACS GPU benchmark cells (g6/g6e/g7e) in https://github.com/scttfrdmn/aws-gromacs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions