Skip to contents

test a lambda locally

Usage

test_lambda(tag, payload)

Arguments

tag

The tag of an existing local image tagged with ECR repo (see `build_lambda`)

payload

Named list. Arguments to lambda function.

Value

Invisibly, the result of [sys::exec_internal()] for the `curl` call to the local container: a list with `status`, and `stdout` and `stderr` as raw vectors. The response is also printed.

Examples

if (FALSE) { # \dontrun{
  payload <- list(number = 2)
  test_lambda(tag = "parity1", payload)
} # }