函数工作流 FUNCTIONGRAPH-部署deploy:操作案例

时间:2025-02-18 14:55:39

操作案例

有资源描述文件(Yaml)时,可以直接执行s deploy 进行资源部署,描述文件(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
    trigger:
        triggerTypeCode: APIG
        status: ACTIVE
        eventData:
            name: APIG_test
            groupName: APIGroup_xxx
            auth:  IAM 
            protocol: HTTPS
            timeout: 5000
support.huaweicloud.com/devg-functiongraph/functiongraph_02_0704.html