Skip to content

Try the lambda driver against real AWS Lambda microVMs #664

Backlog

Description

@fctl-sh

What is missing

The lambda driver, which runs each session in an AWS Lambda microVM in a workspace's own AWS account (ADR 0106, AWS Lambda microVMs), was written from AWS's docs and has only run against fctl's stand-in for Lambda. Nobody has run a session in a real microVM yet, so a workspace that follows Runners in your cloud gets a host, a policy and commands no one has tried on AWS.

How it works now

  • crates/fctl-host/src/driver/lambda calls Lambda's microVM API (2025-09-09: RunMicrovm, SuspendMicrovm, ResumeMicrovm, TerminateMicrovm, ListMicrovms, CreateMicrovmAuthToken, CreateMicrovmImage, UpdateMicrovmImage) with SigV4, and reaches each microVM's endpoint with X-aws-proxy-auth and X-aws-proxy-port, over a WebSocket to fctl-agent microvm-serve (crates/fctl-agent/src/microvm).
  • cargo xtask dev --microvms runs the whole path against xtask/lambda, a stand-in that answers the API and the endpoints as the docs describe them, with fctl-agent microvm-serve processes for microVMs. It checks SigV4's form, not its signature.
  • The image fctl builds is a Dockerfile FROM ghcr.io/hyperstructure/sandbox:<version> that adds fctl-agent, which Lambda builds on its al2023-1 base with the workspace's build role. Whether Lambda's build pulls from ghcr.io, and how long a build of the 1.3 GB sandbox image takes, is unknown.

What should happen

  • A host on an EC2 instance with the policy the Runners tab shows runs a session in a microVM of an image fctl built, in a region with Lambda microVMs.
  • The session's microVM suspends 90 seconds after its turn, resumes for a message, and goes after its while suspended; a message then carries the session on from its snapshot.
  • Warm microVMs start and suspend, and a new session takes one.
  • An image of one's own, from fctl host microvm-image, runs too.
  • An egress connector to a VPC, an execution role, a KMS key and a log group work as the settings say.
  • The guide's policy, build role and commands are what AWS needs, and anything the stand-in does differently from Lambda is fixed in it.

Compatibility

Fixes in the host and fctl-agent ship with a release; the control plane's settings and reports are unlikely to change.

Decisions for a person

  • Which AWS account and region to try it in, and who has access to it.

Session: https://app.fctl.sh/s/ses_01M8SGGRBHKJFE8VCGBXSHP3NE

Activity

  1. added
    documentation
    host
    on Dec 1, 2026
  2. fctl-sh commented on Dec 1, 2026

    @fctl-sh
    ContributorAuthor

    The lambda driver this issue tries out merged in #665 (aa96742), with the web app's design docs in hyperstructure/design#86 and the privacy policy's lines in hyperstructure/fctl-site#145.

    • Deployed: app.fctl.sh runs the control plane's side since main's CI deployed it: runners' microVM settings (PUT /api/v1/runners/{id}/microvms, migration 0079), the hosts' reports, and the Runners tab's microVMs section. fctl.sh's docs show Runners in your cloud: AWS Lambda microVMs.
    • Waiting for a release: the host (fctl host install --driver lambda), fctl-agent's microvm-serve and the CLI (fctl runners microvms, fctl host microvm-image) ship with the release after v0.39.1; no tag contains aa96742 yet. Trying this on AWS needs that release, or fctl built from main.

    What is left is this issue's checklist, for a person to choose the account and region.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationhost

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions