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 variables from current lambda via Node JS AWS-SDK?
Just as you would any environment variable from node
const tableName = process.env.TABLE_NAME;
2.1m questions
2.1m answers
60 comments
57.0k users