dailycheckin/serverless.yml
2020-12-14 17:49:48 +08:00

35 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#组件信息
component: scf # (必选) 组件名称在该实例中为scf
name: dailycheckin # (必选) 组件实例名称。
#组件参数配置
inputs:
name: scf-${name} # 云函数名称,默认为 ${name}-${stage}-${app}
enableRoleAuth: true # 默认会尝试创建 SCF_QcsRole 角色,如果不需要配置成 false 即可
src: ./
handler: index.main_handler #入口
runtime: Python3.6 # 运行环境 默认 Nodejs10.15
region: ap-hongkong # 函数所在区域
description: This is a function in ${app} application.
memorySize: 128 # 内存大小单位MB
timeout: 900 # 超时时间,单位秒
events: # 触发器
- timer: # 签到
parameters:
name: dailycheckin
cronExpression: "0 45 8 * * * *"
enable: false
argument: None
- timer: # 喜马拉雅极速版
parameters:
name: xmly
cronExpression: "0 */30 * * * * *"
enable: false
argument: xmly
- timer: # 企鹅读书
parameters:
name: qqread
cronExpression: "0 */11 * * * * *"
enable: true
argument: qqread