Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (790 points)
set environment variables in AWS lambda

1 Answer

0 votes
by (1.4k points)
edited by

You can specify environment variables for AWS Lambda either by using AWS Console or CLI. Here is a code for setting up lambda using CLI:

aws lambda create-function \
  --region us-east-1
  --function-name myTestFunction
  --zip-file fileb://path/package.zip
  --role role-arn
  --environment Variables={LD_LIBRARY_PATH=/usr/bin/test/lib64}
  --handler index.handler
  --runtime nodejs4.3
  --profile default
Need help mastering AWS Lambda and other AWS skills? Go through AWS Training Page and become an AWS expert!

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...