Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 1.27 KB

11-environment-variable-handling.md

File metadata and controls

21 lines (13 loc) · 1.27 KB

Environment Variables in Serverless

Environment variables are a very important and often requested feature in Serverless. It is one of our highest priority features, but to implement it to the extent we want it to be available will take more time as of now. Until then you'll be able to use the following tools for different languages to set environment variables and make them available to your code.

Javascript

You can use dotenv to load files with environment variables. Those variables can be set during your CI process or locally and then packaged and deployed together with your function code.

Python

You can use python-dotenv to load files with environment variables. Those variables can be set during your CI process or locally and then packaged and deployed together with your function code.

Java

For Java the easiest way to set up environment like configuration is through property files. While those will not be available as environment variables they are very commonly used configuration mechanisms throughout Java.