get_handler_function_from_env_var: Determine the function referred to by the "_HANDLER"...

View source: R/lambda-config.R

get_handler_function_from_env_varR Documentation

Determine the function referred to by the "_HANDLER" environment variable

Description

This function will try to identify the function referred to by the "_HANDLER" environment variable. This environment variable is configured by AWS Lambda, either through the CMD of the Dockerfile containing the runtime or through the AWS Lambda console (which takes priority). This function also performs some checks, making sure that the environment variable is defined and that it exists in the given environment, and that it's a function.

Usage

get_handler_function_from_env_var(environ)

Arguments

environ

environment in which to search for the function given by the "_HANDLER" environment variable. Defaults to the parent frame.


lambdr documentation built on Nov. 25, 2023, 5:08 p.m.