Updated on 2023-12-20 GMT+08:00

Introduction

Component Description

Huawei Cloud FunctionGraph component is a tool used to manage the lifecycle of Huawei Cloud function applications. It is developed based on Serverless Devs. By configuring the resource configuration file s.yaml, you can easily and quickly deploy applications on Huawei Cloud FunctionGraph.

Prerequisites

Node.js has been installed on the local host.

Getting Started

  1. Run the npm install -g @serverless-devs/s command to install the Serverless Devs developer tool.

    After the installation is complete, you need to configure the key. For details, see Key Configuration.

  2. Initialize a Hello World project by running s init start-fg-http-nodejs14.
  3. After the initialization is complete, enter the project and run s deploy to deploy a function.

Using Commands

The capabilities of the FunctionGraph component are listed in Table 1.

Table 1 Component capabilities

Build & Deploy

Publish & Configure

Other Functions

deploy

version

Project Migration fun2s

remove

alias

-

When using the FunctionGraph component, you also need to compile resource description files. For details about YAML specifications of the FunctionGraph component, see Huawei Cloud FunctionGraph YAML Specifications.