Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
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.4k 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

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...