diff --git a/serverless.yml b/serverless.yml index 69c157e..1db2fb8 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