From f53fa68e5816fe91348b4d83fb1ef8556dcb3ab0 Mon Sep 17 00:00:00 2001 From: Akira-Work Date: Wed, 18 Nov 2020 15:20:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=8E=AF=E5=A2=83=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E9=85=8D=E7=BD=AE=E8=B0=83=E6=95=B4=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E4=B8=BA=E9=A6=99=E6=B8=AF=E6=96=B9=E4=BE=BF?= =?UTF-8?q?TG=E7=94=A8=E6=88=B7=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- serverless.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/serverless.yml b/serverless.yml index 69c157e2..1db2fb8b 100644 --- a/serverless.yml +++ b/serverless.yml @@ -11,10 +11,10 @@ inputs: src: ./ handler: index.main_handler #入口 runtime: Nodejs12.16 # 运行环境 默认 Nodejs10.15 - region: ap-guangzhou # 函数所在区域 + region: ap-hongkong # 函数所在区域 description: This is a function in ${app} application. - memorySize: 64 # 内存大小,单位MB - timeout: 900 # 超时时间,单位秒 + memorySize: 128 # 内存大小,单位MB + timeout: 6000 # 超时时间,单位秒 events: # 触发器 - timer: # 定时触发器 parameters: @@ -22,3 +22,6 @@ inputs: cronExpression: "0 0 0 */1 * * *" # 每天零点执行一次 enable: true argument: argument # 额外的参数 + environment: # 环境变量 + variables: # 环境变量对象 + AAA: BBB # 不要删除,用来格式化对齐追加的变量的 \ No newline at end of file