Environment Variables
You can configure encryption settings and environment variables to dynamically pass settings to your function code and libraries without changing your code, as shown in Figure 1.
For example, you can use getUserData(string key) in the context class to obtain the values of environment variables and encryption settings in Node.js. For details, see Developing Functions in Node.js. For details on how to obtain the values of environment variables in other runtimes, see Developing Functions.
- Environment variables and encryption settings are user-defined key-value pairs that store function settings. Keys can contain letters, digits, and underscores (_), and must start with a letter.
- The total length of the key and value cannot exceed 2048 characters.
Last Article: Creating a Function
Next Article: Triggering a Function

Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.