Repository navigation
feat(launch): add --volume-size flag for root EBS volume - #12
Merged
Merged
Conversation
The backend already supported a custom root volume — LaunchConfig. RootVolumeSizeGiB is honored by buildBlockDevices — but no CLI flag exposed it. Add --volume-size (GiB; 0 = AMI default) on spawn launch and map it through buildLaunchConfig. Enables AMI-baking workflows that pre-install large datasets beyond the default root volume. Closes #11.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #11.
`spawn launch` had no flag to set the root EBS volume size, blocking AMI-bake workflows that pre-install large datasets (the aws-microbiome-demo bake needs ~40 GB).
The fix is small because the backend already existed
`LaunchConfig.RootVolumeSizeGiB` is already honored by `buildBlockDevices` (it's used today for hibernation sizing). Only the CLI flag was missing. This PR:
Tests
`TestBuildLaunchConfig_VolumeSize` covers both the set (→80) and unset (→0, AMI default) paths. `buildBlockDevices` behavior with `RootVolumeSizeGiB` was already covered in `pkg/aws/helpers_test.go`.
`go build`, `go vet`, `gofmt`, full `go test ./...` pass; coverage gate holds (26.8% ≥ 26%).