Updated on 2023-10-19 GMT+08:00

deploy function

deploy function is used to deploy a function.

You can run deploy function -h or deploy function --help to view the documentation.

Parameter Parsing

Table 1 Parameter description

Parameter Name

Abbreviation

Required in YAML

Description

type

-

No

Deployment type, which can be code or config.

Examples

If a resource description file (YAML) is available, you can directly run the s deploy function command to deploy the function. The following is an example of the description file (YAML):
fgs-deploy-test: 
    region:   cn-north-4
    function: 
        functionName: fgs-deploy-test
        handler: index.handler
        memorySize: 128
        timeout: 30
        runtime: Node.js14.18
        package: default
        codeType: zip
        code:
        codeUri: ./code