feat: add fun template.yml
This commit is contained in:
23
{{project_name}}/template.yml
Normal file
23
{{project_name}}/template.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
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 %}
|
||||
Reference in New Issue
Block a user