Skip to content

feat: add AWS Lambda MicroVMs (sandboxes) examples#812

Open
czubocha wants to merge 3 commits into
v4from
sandboxes
Open

feat: add AWS Lambda MicroVMs (sandboxes) examples#812
czubocha wants to merge 3 commits into
v4from
sandboxes

Conversation

@czubocha

@czubocha czubocha commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

What this adds

A three-example gallery for the Serverless Framework sandboxes feature, which deploys AWS Lambda MicroVMs. Each example is self-contained with its own README, serverless.yml, application source, and Dockerfile.

minimal/

The smallest possible configuration: a single sandbox with only the required artifact field. Every other setting falls back to a framework default. Good as a first look at the feature.

complete/

A deploy-as-is showcase of the property surface, exercised by one api sandbox:

  • local Dockerfile build, minimumMemory, description, environment
  • lifecycle hooks (ready + run)
  • full observability — custom metric filters, alarms wired to a self-contained SNS topic, and a dashboard
  • custom iam statements merged into the generated least-privilege roles
  • tags

VPC egress and a pre-packaged s3:// artifact are included as commented, opt-in blocks (they need account-specific IDs).

self-hosted-webhook/

A webhook control plane that launches one isolated MicroVM per Claude Managed Agents session:

  • an API Gateway–fronted launcher Lambda verifies the webhook signature and calls RunMicrovm
  • the worker image (built by the sandboxes feature) runs the session
  • the README walks through deploying, developing locally against the SDK-compatible emulator, and observing the run via the generated CloudWatch dashboard (screenshots included)

Testing

Each example deploys with serverless deploy and was validated end-to-end: deploy, invoke, log retrieval, and the observability metrics/alarms/dashboard.

czubocha added 3 commits July 1, 2026 22:56
Add a three-example gallery for the Serverless Framework `sandboxes`
feature, which deploys AWS Lambda MicroVMs.

- minimal/            smallest config: a single sandbox with only `artifact`;
                      every other setting uses a framework default
- complete/           deploy-as-is showcase: Dockerfile build, minimumMemory,
                      environment, lifecycle hooks, observability (metric
                      filters, alarms -> SNS, dashboard), custom IAM, and tags;
                      VPC egress and a pre-packaged S3 artifact shown as
                      commented, opt-in blocks
- self-hosted-webhook/ a webhook control plane that launches one MicroVM per
                      Claude Managed Agents session (launcher Lambda verifies
                      the signature and calls RunMicrovm; the worker image runs
                      the session), with a local dev walkthrough and CloudWatch
                      dashboard screenshots

Each example ships a README, serverless.yml, app source, and Dockerfile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant