Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS lambda add PATH variable?

I need to append the root path of the ZIP file for Amazon Lambda function because I have placed an executable file there.

I have tried: PATH = "$PATH:$LAMBDA_TASK_ROOT:/"

It did not work.

like image 404
user3384741 Avatar asked Nov 06 '17 11:11

user3384741


People also ask

How do I set environment variables in serverless?

To reference environment variables, use the ${env:SOME_VAR} syntax in your serverless. yml configuration file. It is valid to use the empty string in place of SOME_VAR . This looks like " ${env:} " and the result of declaring this in your serverless.

Does Lambda support for environment variables?

Lambda functions come with a set of default environment variables. These environment variable names are reserved, and users will not be able to overwrite them.


1 Answers

You can set it in the lambda console itself by modifying the environment variables.

environment-variables

like image 93
Shuvojit Avatar answered Sep 21 '22 20:09

Shuvojit