9

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.

3
  • Where do you need to append path variable? Is that in API gateway or Lambda environment variables? Commented Nov 6, 2017 at 12:50
  • How about instead of trying to modify the run-time environment variables, just explicitly specify the full path to the executable when you run it? Commented Nov 6, 2017 at 14:03
  • What runtime are you using? Also, how are you referencing (in code) the PATH variable you're setting? Commented Apr 14, 2019 at 20:35

1 Answer 1

1

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

environment-variables

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.