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.
Figure 1 Setting environment variables

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 about how to obtain environment variables, 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.
Parent topic: Building a FunctionGraph Function