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
spawn launch: should auto-detect minimum volume size from AMI snapshot #25
When launching from a custom AMI whose root snapshot is larger than spawn's default volume size, spawn launch fails with:
api error InvalidBlockDeviceMapping: Volume of size 20GB is smaller than snapshot 'snap-0e4706350e689...', expect size >= 80GB
The user is forced to pass --volume-size 80 explicitly, even though the correct minimum is already encoded in the AMI's block device mapping.
Expected behaviour
spawn launch --ami ami-0abc... should query the AMI's BlockDeviceMappings and use max(default_size, snapshot_minimum) as the volume size automatically — the same logic that the EC2 console applies when launching from a custom AMI.
Steps to reproduce
Bake a custom AMI with an 80 GB root volume (common for data science / bioinformatics AMIs with large pre-installed databases)
This is now also blocking nf-spawn (spore-host/nf-spawn#21): when nf-spawn dispatches tasks with --ami ami-xxx, spawn defaults to 20 GB and fails with InvalidBlockDeviceMapping: Volume of size 20GB is smaller than snapshot, expect size >= 40GB. If spawn auto-detected the minimum volume size from the AMI's BlockDeviceMappings, neither spawn users nor nf-spawn plugin authors would need to track this manually.
Activity
Fix cloud-init race + spawn#26 polling workaround
scttfrdmn commentedon Jun 3, 2026
This is now also blocking nf-spawn (spore-host/nf-spawn#21): when nf-spawn dispatches tasks with
--ami ami-xxx, spawn defaults to 20 GB and fails withInvalidBlockDeviceMapping: Volume of size 20GB is smaller than snapshot, expect size >= 40GB. If spawn auto-detected the minimum volume size from the AMI'sBlockDeviceMappings, neither spawn users nor nf-spawn plugin authors would need to track this manually.test(aws): extract rootVolumeSizeFromMappings for unit coverage (#25)
fix(launch): auto-detect minimum root volume size from AMI snapshot (#25
Fix cloud-init race + spawn#26 polling workaround
fix(aws): derive root block device from AMI, not hardcoded /dev/xvda (#…
fix(aws): derive root block device from AMI, not hardcoded /dev/xvda (#…