{"id":51792426,"url":"https://github.com/kanutocd/lambda-microvms","last_synced_at":"2026-07-20T23:37:47.292Z","repository":{"id":367577710,"uuid":"1281368445","full_name":"kanutocd/lambda-microvms","owner":"kanutocd","description":"Ruby resource objects, waiters, endpoint helpers, project scaffolding, packaging, and deployment ergonomics built on top of aws-sdk-lambda.","archived":false,"fork":false,"pushed_at":"2026-06-26T18:35:16.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-20T23:37:46.163Z","etag":null,"topics":["aws","aws-lambda","aws-lambda-runtime","aws-sdk","cloud-native","developer-tools","docker","firecracker","lambda","microvm","ruby","serverless","toolkit"],"latest_commit_sha":null,"homepage":"https://kanutocd.github.io/lambda-microvms/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kanutocd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-26T13:39:59.000Z","updated_at":"2026-06-26T18:48:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kanutocd/lambda-microvms","commit_stats":null,"previous_names":["kanutocd/lambda-microvms"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kanutocd/lambda-microvms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanutocd%2Flambda-microvms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanutocd%2Flambda-microvms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanutocd%2Flambda-microvms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanutocd%2Flambda-microvms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kanutocd","download_url":"https://codeload.github.com/kanutocd/lambda-microvms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanutocd%2Flambda-microvms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35703527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"ssl_error","status_checked_at":"2026-07-20T02:08:09.736Z","response_time":111,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-lambda","aws-lambda-runtime","aws-sdk","cloud-native","developer-tools","docker","firecracker","lambda","microvm","ruby","serverless","toolkit"],"created_at":"2026-07-20T23:37:46.545Z","updated_at":"2026-07-20T23:37:47.285Z","avatar_url":"https://github.com/kanutocd.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lambda-microvms\n\n[![Gem Version](https://badge.fury.io/rb/lambda-microvms.svg)](https://badge.fury.io/rb/lambda-microvms)\n[![CI](https://github.com/kanutocd/lambda-microvms/workflows/CI/badge.svg)](https://github.com/kanutocd/lambda-microvms/actions)\n[![Ruby Version](https://img.shields.io/badge/ruby-%3E%3D%203.2-ruby.svg)](https://www.ruby-lang.org/en/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA Ruby development kit for AWS Lambda MicroVM experiments and standard Lambda function workflows.\n\n`lambda-microvms` builds on the official `aws-sdk-lambda` gem. It provides Ruby resource objects, lifecycle helpers, endpoint calls, project scaffolding, packaging, experimental MicroVM deployment commands, and a supported Lambda function client for APIs that exist today.\n\nIt gives Ruby developers a higher-level workflow:\n\n```text\nscaffold\n  ↓\ndevelop\n  ↓\npackage\n  ↓\ndeploy image\n  ↓\nrun / suspend / resume / terminate\n```\n\n## Why `aws_lambda_ric` appears in generated projects\n\nRuby MicroVM applications need a runtime inside the image. For non-AWS or OS-only Ruby container images, AWS documents the Ruby Runtime Interface Client (`aws_lambda_ric`) as the component that lets Ruby code interact with the Lambda Runtime API.\n\n`lambda-microvms` uses `aws_lambda_ric` as a **generated project dependency**, not as a host-side SDK dependency.\n\n```text\nHost side:\n  lambda-microvms\n  aws-sdk-lambda\n  aws-sdk-s3\n\nGuest side / inside generated image:\n  aws_lambda_ric\n  your Ruby handler\n```\n\n## Installation\n\n```ruby\ngem \"lambda-microvms\"\n```\n\n## Scaffold a Ruby MicroVM project\n\n```bash\nlambda-microvms new hello-worker\ncd hello-worker\n```\n\nGenerated project:\n\n```text\nhello-worker/\n  Dockerfile\n  Gemfile\n  app.rb\n  microvm.yml\n  README.md\n  .env.example\n```\n\nThe generated `Gemfile` includes:\n\n```ruby\ngem \"aws_lambda_ric\"\n```\n\n## Check readiness\n\n```bash\nlambda-microvms doctor\n```\n\nChecks Ruby, Docker, AWS CLI, project config, Dockerfile, deployment bucket, runtime role, `aws_lambda_ric` presence, and whether the installed `aws-sdk-lambda` exposes the experimental MicroVM operation contract.\n\n## Check the MicroVM SDK contract\n\n```bash\nlambda-microvms sdk-contract\n```\n\nThe public `aws-sdk-lambda` gem may not expose MicroVM lifecycle operations such as `create_microvm_image` or `run_microvm`. When those methods are missing, MicroVM `deploy` and `run` fail before packaging or uploading artifacts.\n\n## Package\n\n```bash\nlambda-microvms package\n```\n\nCreates the source artifact configured by `microvm.yml`.\n\n## Deploy\n\n```bash\nlambda-microvms deploy\n```\n\nDeployment flow:\n\n```text\nzip project\n  ↓\nupload to S3\n  ↓\ncreate MicroVM image through aws-sdk-lambda\n```\n\nThe exact AWS Lambda MicroVM API parameter names are still kept close to AWS naming. Put API-specific values under `image.create` in `microvm.yml`.\n\n## Run\n\n```bash\nlambda-microvms run\n```\n\nRuns the configured image ARN with the configured role ARN and runtime payload.\n\n## Standard Lambda function APIs\n\nThe gem also includes a supported path for regular Lambda function APIs available in `aws-sdk-lambda` today.\n\n```ruby\nclient = Lambda::MicroVMs::FunctionClient.new(region: \"us-east-1\")\n\nclient.create_function(\n  name: \"ruby-worker\",\n  role_arn: \"arn:aws:iam::123456789012:role/lambda-runtime\",\n  handler: \"app.Handler.process\",\n  runtime: \"ruby3.4\",\n  zip_file: \"tmp/function.zip\"\n)\n\nresult = client.invoke(function_name: \"ruby-worker\", payload: { hello: \"world\" })\n```\n\nYou can also invoke an existing function from the CLI:\n\n```bash\nlambda-microvms function-invoke ruby-worker '{\"hello\":\"world\"}'\n```\n\n## Ruby SDK usage\n\n```ruby\nrequire \"lambda/microvms\"\n\nclient = Lambda::MicroVMs::Client.new(region: \"us-east-1\")\n\nimage = client.image(\"arn:aws:lambda:us-east-1:123456789012:microvm-image:ruby-sandbox\")\n\nvm = image.run(\n  role_arn: \"arn:aws:iam::123456789012:role/lambda-microvm-runtime\",\n  payload: { tenant_id: \"tenant_123\" }\n)\n\nvm.wait_until_running\n\nresponse = vm.post(\"/process\", json: { hello: \"world\" })\n\nvm.suspend\nvm.resume\nvm.terminate\n```\n\n## Session helper\n\n```ruby\nLambda::MicroVMs.session(\n  image_arn: \"arn:aws:lambda:us-east-1:123456789012:microvm-image:ruby-sandbox\",\n  role_arn: \"arn:aws:iam::123456789012:role/lambda-microvm-runtime\",\n  after: :suspend,\n  payload: { tenant_id: \"tenant_123\" }\n) do |vm|\n  vm.post(\"/process\", json: { event_id: \"evt_1\" })\nend\n```\n\nSupported cleanup policies:\n\n```ruby\nafter: :keep\nafter: :suspend\nafter: :terminate\n```\n\n## Architecture\n\n```text\naws-sdk-lambda\n        │\n        ▼\nLambda::MicroVMs::Client\n        │\n        ├── Image\n        ├── MicroVM\n        ├── Endpoint\n        ├── Session\n        ├── FunctionClient\n        ├── Scaffold\n        ├── Packager\n        └── Deployer\n```\n\n## Status\n\nMicroVM lifecycle support is experimental and contract-gated. The current public `aws-sdk-lambda` may not expose the MicroVM methods this gem wraps. Use `lambda-microvms sdk-contract` to verify your installed SDK.\n\nStandard Lambda function operations are available through `Lambda::MicroVMs::FunctionClient`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanutocd%2Flambda-microvms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkanutocd%2Flambda-microvms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanutocd%2Flambda-microvms/lists"}