Skip to main content
The --lambda flag on valkyrie run start invokes an AWS Lambda function after a run completes.
The lambda is invoked once after all tasks finish and results are uploaded. If the lambda fails (uncaught exception or statusCode >= 400), the run will be marked as ERROR.

Payload

The tracker invokes your lambda with the full BenchmarkArguments plus the persisted benchmark ID and name:

Format required by AWS

AWS Lambda expects a lambda_function.py with a lambda_handler entry point Example method:

Deployment

The lambda is invoked using the user’s AWS credentials (from valkyrie config init). It must be deployed in the user’s AWS account and region defined by the user.