@@ -18,6 +18,11 @@ inputs:
18
18
runtime : Nodejs10.15
19
19
serviceId : service-np1uloxw
20
20
src : ./src
21
+ # src:
22
+ # src: ./src
23
+ # exclude:
24
+ # - .env
25
+ # - node_modules
21
26
layers :
22
27
- name : expressLayer
23
28
version : 1
@@ -61,29 +66,30 @@ inputs:
61
66
62
67
Main param description
63
68
64
- | Param | Required | Default | Description |
65
- | ---------------------------------------- | :------: | :-------------: | :------------------------------------------------------------------------------------------ |
66
- | runtime | N | Nodejs10.15 | Function Runtime, support: Nodejs6.10, Nodejs8.9, Nodejs10.15 |
67
- | region | N | ap-guangzhou | Deploy region |
68
- | functionName | N | | Serverless Cloud Function Name |
69
- | serviceName | N | | API-Gateway service name, default to create a new serivce |
70
- | serviceId | N | | API-Gateway service id, if it has will use this APII-Gateway service |
71
- | src | N | ` process.cwd()` | Default is current working directory, if it is object, refer to [code object](#code -object) |
72
- | layers | N | | Bind layers for scf, array of [Layer](#layer) |
73
- | exclude | N | | exclude file |
74
- | include | N | | include file, if relative path, should relative to `serverless.yml` |
75
- | [functionConf](#funtionConf) | N | | Function configure |
76
- | [apigatewayConf](#apigatewayConf) | N | | API-Gateway configure |
77
- | [cloudDNSConf](#cloudDNSConf) | N | | Special config for region |
78
- | [Region special config](#apigatewayConf) | N | | Special config for region. Use region name for key |
69
+ | Param | Required | Default | Description |
70
+ | ---------------------------------------- | :------: | :-------------: | :---------------------------------------------------------------------------------------- |
71
+ | runtime | N | Nodejs10.15 | Function Runtime, support: Nodejs6.10, Nodejs8.9, Nodejs10.15 |
72
+ | region | N | ap-guangzhou | Deploy region |
73
+ | functionName | N | | Serverless Cloud Function Name |
74
+ | serviceName | N | | API-Gateway service name, default to create a new serivce |
75
+ | serviceId | N | | API-Gateway service id, if it has will use this APII-Gateway service |
76
+ | src | N | ` process.cwd()` | Default is current working directory, if it is object, refer to [src object](#src -object) |
77
+ | layers | N | | Bind layers for scf, array of [Layer](#layer) |
78
+ | exclude | N | | exclude file |
79
+ | include | N | | include file, if relative path, should relative to `serverless.yml` |
80
+ | [functionConf](#funtionConf) | N | | Function configure |
81
+ | [apigatewayConf](#apigatewayConf) | N | | API-Gateway configure |
82
+ | [cloudDNSConf](#cloudDNSConf) | N | | Special config for region |
83
+ | [Region special config](#apigatewayConf) | N | | Special config for region. Use region name for key |
79
84
80
85
# # src object
81
86
82
- | Param | Required | Type | Default | Description |
83
- | ------ | :------ : | :----: | :-----: | :----------------- |
84
- | src | N | String | | code path |
85
- | bucket | N | String | | bucket name |
86
- | object | N | String | | bucket object name |
87
+ | Param | Required | Type | Default | Description |
88
+ | ------- | :------ : | :-------------: | :-----: | :---------------------------------------------------------------------------- |
89
+ | src | N | String | | code path |
90
+ | exclude | N | Array of String | | Exclude path or file, using [glob sytax](https://github.com/isaacs/node-glob) |
91
+ | bucket | N | String | | bucket name |
92
+ | object | N | String | | bucket object name |
87
93
88
94
# # layer
89
95
0 commit comments