2019-09-21 22:51:31 +08:00
|
|
|
# https://github.com/alibaba/funcraft/blob/master/docs/specs/2018-04-03-zh-cn.md
|
2019-08-21 21:52:14 +08:00
|
|
|
ROSTemplateFormatVersion: '2015-09-01'
|
|
|
|
Transform: 'Aliyun::Serverless-2018-04-03'
|
|
|
|
Resources:
|
|
|
|
jpom:
|
|
|
|
Type: 'Aliyun::Serverless::Service'
|
|
|
|
Properties:
|
2019-08-21 22:32:21 +08:00
|
|
|
Description: 'jpom'
|
2019-08-21 21:52:14 +08:00
|
|
|
jpom-releases:
|
|
|
|
Type: 'Aliyun::Serverless::Function'
|
|
|
|
Properties:
|
|
|
|
Handler: index.handler
|
|
|
|
Runtime: python3
|
2019-08-21 22:32:21 +08:00
|
|
|
CodeUri: './'
|
|
|
|
Description: 'Jpom 安装url处理'
|
2019-09-21 22:51:31 +08:00
|
|
|
MemorySize: 320
|
|
|
|
Timeout: 5
|
|
|
|
InitializationTimeout: 5
|
2019-08-21 22:32:21 +08:00
|
|
|
Events:
|
|
|
|
install-api:
|
|
|
|
Type: HTTP
|
|
|
|
Properties:
|
|
|
|
AuthType: ANONYMOUS
|
|
|
|
Methods: ['GET']
|