24 lines
627 B
YAML
24 lines
627 B
YAML
ROSTemplateFormatVersion: '2015-09-01'
|
|
Transform: 'Aliyun::Serverless-2018-04-03'
|
|
Resources:
|
|
{{fnservice}}:
|
|
Type: 'Aliyun::Serverless::Service'
|
|
Properties:
|
|
Description: '{{description}}'
|
|
{{fnfunction}}:
|
|
Type: 'Aliyun::Serverless::Function'
|
|
Properties:
|
|
Handler: index.handler
|
|
MemorySize: 128
|
|
CodeUri: './code.zip'
|
|
Description: '{{description}}'
|
|
Runtime: custom
|
|
{% if fnevent != "None" -%}
|
|
Events:
|
|
{{fnevent}}:
|
|
Type: HTTP
|
|
Properties:
|
|
AuthType: ANONYMOUS
|
|
Methods: ['GET', 'POST', 'PUT']
|
|
{%- endif %}
|