Updated on 2025-08-19 GMT+08:00

Overview

After a function is created, you need to configure the resources and environment required for running the function to ensure that the function meets service requirements.

Function Configuration Process

Figure 1 describes the overall process of configuring a function.

Figure 1 Function configuration process

For details, see Table 1.

Table 1 Function configuration procedure

No.

Procedure

Description

1

Configuring Function Code

FunctionGraph supports the following function code deployment modes:

  • Edit code inline: Edit function code inline using the console code editor.
  • Upload function code: Upload a local ZIP or JAR file. This mode applies to scenarios where the code file size does not exceed 40 MB.
  • Upload code from OBS: Upload a ZIP or JAR file in an OBS bucket by specifying the OBS bucket address. This mode applies to scenarios where the code file size does not exceed 300 MB.

2

Configuring Dependencies

Dependencies provide dependent libraries, runtime environments, and extended execution capabilities for functions to ensure that function code meets service requirements.

3

(Optional) Configuring Agency Permissions

If FunctionGraph needs to access other cloud services, you must create an agency to authorize FunctionGraph to access these cloud services. Otherwise, retain the default settings.

4

(Optional) Configuring Network

After a function is created, Public Access is enabled by default. You can manually modify the network configuration.

Functions can access the following two types of networks:

  • Public Access: Functions can access public network resources. The scenarios include calling external APIs, accessing other cloud storage services, and integrating third-party services.
  • VPC Access: Functions can access resources in VPCs. For services that require high bandwidth, high performance, and high reliability, you are advised to enable this feature.

5

(Optional) Configuring Triggers

A trigger triggers the execution of a function. You can create a trigger and define the trigger condition. When the condition is met, the event source automatically invokes the function associated with the trigger.

If FunctionGraph functions need to automatically respond to specific events, configure triggers. For details, see Supported Trigger Events.

6

Debugging a Function Online

After configuring the function, set test events to verify and debug the function execution.