Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in AWS by (19.1k points)

We can set up Environment Variables in aws-lambda for example via AWS SAM:

Environment:

    Variables:

      TABLE_NAME: !Ref Table

How can I get this variable from current lambda via Node JS AWS-SDK?

closed

1 Answer

0 votes
by (44.3k points)
selected by
 
Best answer

Use this:

const tableName = process.env.TABLE_NAME;

Related questions

Want to get 50% Hike on your Salary?

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

0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...