Skip to content

CreateShellAuthToken

Source: src/AWS/Lambda/CreateShellAuthToken.ts

Runtime binding for CreateMicrovmShellAuthToken.

Bind it to a {@link MicrovmImage} to get a callable that mints a short-lived token for interactive shell access to a running MicroVM (the MicroVM must have been run with the shell ingress connector attached).

const createShellAuthToken = yield* AWS.Lambda.CreateShellAuthToken(Sandbox);
const { authToken } = yield* createShellAuthToken({
microvmIdentifier: vm.microvmId,
expirationInMinutes: 5,
});