Environment
Environment variables
A list of environment variables that are defined in the Cloud Functions runtime environment and can be used by functions.
Key | Value |
---|---|
_HANDLER |
The handler location specified for the function. |
AWS_LAMBDA_RUNTIME_API |
The runtime host and API port. |
LAMBDA_RUNTIME_DIR |
The path to the runtime libraries. |
LAMBDA_TASK_ROOT |
The path to your function code. |
PATH |
The set of folders with executable files. |
You can add environment variables in the management console.
User files
User files are stored in two directories:
/function/code
: The user's working directory. It contains all the code of your function and all the files uploaded as a ZIP archive. You can use a relative path to access it./tmp
: A directory to store temporary files used for optimizing repeated function instance calls. The maximum size of temporary files is limited to 512 MB.