Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

351
Views
Is there a way to define a common env variable in aws lambda layer?

I use serverless framework and I have multilple aws node.js lambdas that share the same layer. I want to define an ENV variable for all of them-is there a way to put that common ENV variable into the layer's serverless.yml? Or do I have to go and put it in each serverles.yml files separately?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

To deal with env variables in my lambdas i use this plugin https://www.npmjs.com/package/serverless-dotenv-plugin

It looks for a .env file use it as a reference to your env variables.

plugins:
  - serverless-dotenv-plugin

Hope it helps.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!