0 votes
1 view
in AWS by (18.2k 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?

1 Answer

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

Use this:

const tableName = process.env.TABLE_NAME;

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...