【发布时间】:2018-07-07 21:58:50
【问题描述】:
我的服务结构:
-MyService
-common
-node_modules
-functions_folder
-Function1.js
-Function2.js
-Function3.js
yaml 文件:
service: MyService
provider:
name: aws
runtime: nodejs6.10
stage: dev
functions:
Function1:
handler: functions_folder/Function1.handler
memorySize: 512
timeout: 10
Function2:
handler: functions_folder/Function2.handler
memorySize: 512
timeout: 10
Function2:
handler: functions_folder/Function3.handler
memorySize: 512
timeout: 10
在部署时,我有 3 个不同的 lambda 函数,但每个函数内部都包含 Function1.js、Function2.js、Function3.js。
有人可以解释一下如何从生成的 Lambda 不需要的文件中排除吗?
【问题讨论】:
标签: node.js amazon-web-services aws-lambda serverless-framework serverless