You need to enable JavaScript to run this app.
Volcano Engine Function as a Service

Volcano Engine Function as a Service

Copy page
Download PDF
Function management
Creating event functions
Copy page
Download PDF
Creating event functions
If you want to write your program by using the interface defined by veFaaS, select an event function. This topic describes how to create an event function.​
Prerequisites​
  • The veFaaS is activated.​
  • Cross-service authorization needs to be complete if you use veFaaS for the first time.​
  • (Optional) To upload code via TOS, store the code ZIP file in TOS in advance. For specific operations, see Getting started with TOS.​
  • (Optional) If you need to upload code from your on-premises computer or via TOS, make sure that the code Zip file is not encrypted and its size does not exceed 256 MiB.​
  • (Optional) The Volcano Engine Virtual Private Cloud (VPC) service has been activated, and a VPC, subnets, and security groups have been created in the region where the function is to be deployed. For details, see Creating VPCs, Creating subnets, and Creating security groups.​
  • (Optional) If you need to view function logs, make sure that Volcano Engine TLS has been activated. If you need to use a custom logging project to handle function logs, ensure that the project and topics have already been created. For details, see Creating log projects and Creating log topics.​
  • (Optional) If you need to manage function resources by using projects, create a project in advance. For specific operations, see Creating projects.​
Procedure​
  1. Log in to the veFaaS console.​
  1. In the top navigation bar, select the target region.​
  1. In the left navigation bar, click Function > Function management. On the Function page, click Create function.​
  1. On the Select function creation method page, click Event function > Create Event function. Specify the parameters based on the following descriptions.​
  • Basic information​
  • ​
    Parameter​
    Description​
    Name​
    Specify a custom name for the function. Function names must be unique within the same account. You cannot modify the function name after you create it.​
    Description​
    Enter a description for the function. You can leave this field empty.​
    ​
  • Function code​
  • ​
    Parameter​
    Description​
    Runtime​
    Select a runtime environment for the function code. Python, Golang, and Node.js are supported.​
    Deployment method​
    You can select one of the following deployment methods based on your business requirements.​
    tip​
    The code ZIP file must not be encrypted and must not exceed 256 MiB in size.​
    • Function template: The built-in, ready-to-use code templates provided by veFaaS. Click Code preview to view the resource files and code details included in the current template. Select an appropriate code template based on your business requirements.​
    • Upload code locally: Upload a locally developed ZIP file.​
    • Upload from TOS: In the upload area, select the target bucket and ZIP file.​
    ​
  • Advanced settings​
  1. Click Create to create the function.​
Subsequent operations​
Release the code and configuration of the function. For detailed operations, see Releasing functions.​
Last updated: 2026.08.19 14:06:05