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;
1.4m articles
1.4m replys
5 comments
57.0k users