feat(cargo-lambda): add cookbook and enable for bamboo/pine, hercules, belle, pc137, palm#91
Open
YuseiIto wants to merge 3 commits into
Open
feat(cargo-lambda): add cookbook and enable for bamboo/pine, hercules, belle, pc137, palm#91YuseiIto wants to merge 3 commits into
YuseiIto wants to merge 3 commits into
Conversation
…le, pc137 Add a cargo-lambda cookbook that installs the AWS Lambda Rust toolchain via the shared cargo_package helper (works identically on macOS and Debian/Ubuntu and depends on the rust cookbook). Register it in the bamboo, hercules, belle, and pc137 roles, along with the goss health check. pine inherits it through bamboo. https://claude.ai/code/session_01MABXzYX1YCzosNEyX4fS4X
`cargo install cargo-lambda` compiles a large dependency tree (aws-sdk, gix,
watchexec, ...) from source, which exhausted the disk on the constrained CI
containers ("No space left on device"). Download the prebuilt release binary
for the host platform/arch into ~/.cargo/bin instead. The rust cookbook stays
a dependency since cargo-lambda runs as the `cargo lambda` subcommand.
https://claude.ai/code/session_01MABXzYX1YCzosNEyX4fS4X
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.
Summary
Adds a
cargo-lambdacookbook that installs the AWS Lambda Rust toolchain and enables it across the requested roles.mitamae/cookbooks/cargo-lambdausing the sharedcargo_packagehelper, so it installs identically on macOS and Debian/Ubuntu and pulls in therustcookbook as a dependency (the crate name matches the resultingcargo-lambdabinary, so nobin_nameoverride is needed).cargo lambda --version) in the bamboo, hercules, belle, pc137, and palm roles. pine inherits it automatically through bamboo.Why
cargo_packagecargo-lambda is a Rust Cargo subcommand published on crates.io. Every target role already provisions
rust, so per the repo's installation-method prioritycargo_packageis the cleanest cross-platform fit.Verification
bundle exec rubocop— no offenses on the new cookbook and edited roles.https://claude.ai/code/session_01MABXzYX1YCzosNEyX4fS4X
Generated by Claude Code