Skip to content

spawn launch: no flag to set EBS root volume size #11

Closed

Description

@scttfrdmn

Summary

spawn launch has no flag to set the EBS root volume size. For AMI baking workflows that need to pre-install large datasets, the default root volume fills up.

Use case

Building a bioinformatics AMI that pre-installs:

  • Kraken2 k2_pluspf database: ~16 GB uncompressed
  • MetaPhlAn marker gene database: ~2 GB
  • nf-core/taxprofiler Singularity image: ~3 GB
  • Nextflow pipeline cache, SRA toolkit, spawn CLI, nf-spawn plugin

Total: ~40 GB, well above a typical default root volume (8–20 GB depending on AMI).

Expected

spawn launch my-bake \
  --instance-type c7g.4xlarge \
  --volume-size 80 \       # <-- this flag
  --user-data-file bake.sh \
  --ttl 3h

Equivalent to EC2 BlockDeviceMappings[].Ebs.VolumeSize in RunInstances.

Workaround

Currently none via spawn — have to use a pre-built AMI with a larger root volume or call aws ec2 run-instances directly for the bake step.

Context

https://github.com/scttfrdmn/aws-microbiome-demo — the AMI bake script was using --volume-size 80 assuming the flag existed. Discovered it doesn't when trying to actually run the bake.

Activity

  1. added
    enhancement
    on May 30, 2026
  2. scttfrdmn commented on May 30, 2026

    @scttfrdmn
    ContributorAuthor

    Transferred from spore-host/spore-host — this is a spawn CLI feature, so it lives in this repo now.

    For future filing: the monorepo (spore-host/spore-host) is infrastructure-only (hosted REST API, dashboard, docs, deploy automation). The CLI tools each have their own repo — file feature/bug reports there:

    Good news on this one: the backend already supports it — LaunchConfig.RootVolumeSizeGiB is honored by buildBlockDevices. Only the --volume-size CLI flag was missing. Fix incoming.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions