Skip to content

RunMicrovm

Source: src/AWS/Lambda/RunMicrovm.ts

Runtime binding for RunMicrovm.

Bind it to a {@link MicrovmImage} inside a Lambda Function to get a callable that launches a MicroVM from that image (the imageIdentifier is injected). The response carries the MicroVM endpoint; connect to it with an X-aws-proxy-auth token from {@link CreateAuthToken}.

const runMicrovm = yield* AWS.Lambda.RunMicrovm(Sandbox);
const vm = yield* runMicrovm({
idlePolicy: {
maxIdleDurationSeconds: 900,
suspendedDurationSeconds: 300,
autoResumeEnabled: true,
},
});