diff --git a/WebFunc-Go1-helloworld/serverless.yml b/WebFunc-Go1-helloworld/serverless.yml index edfd46a109..26d143ccaf 100644 --- a/WebFunc-Go1-helloworld/serverless.yml +++ b/WebFunc-Go1-helloworld/serverless.yml @@ -10,15 +10,17 @@ inputs: region: ap-guangzhou memorySize: 512 timeout: 3 - triggers: - - type: apigw - name: SCF_API_SERVICE - protocols: - - http - - https - environment: release - netTypes: - - OUTER - apis: - - path: / - method: ANY + events: + - apigw: + parameters: + serviceName: SCF_API_SERVICE + protocols: + - http + - https + netTypes: + - OUTER + environment: release + endpoints: + - path: / + method: ANY + apiName: ${name}