Mariusz Nowak 3089abc5c4 feat(Templates): Ensure "frameworkVersion" in all templates
As it's now a required setting when relying on globally installed "serverless"
2020-09-02 14:37:49 +02:00

37 lines
735 B
YAML

# Welcome to Serverless!
#
# For full config options, check out the Alibaba Cloud Function Compute
# plugin docs:
# https://github.com/aliyun/serverless-aliyun-function-compute
#
# For documentation on Alibaba Cloud Function Compute itself:
# https://serverless.aliyun.com
# Update the service name below with your own service name
service: aliyun-nodejs
frameworkVersion: '1'
provider:
name: aliyun
runtime: nodejs8
credentials: ~/.aliyuncli/credentials # path must be absolute
plugins:
- serverless-aliyun-function-compute
package:
exclude:
- package-lock.json
- .gitignore
- .git/**
functions:
hello:
handler: index.hello
events:
- http:
path: /foo
method: get