You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-4Lines changed: 25 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,13 +100,18 @@ client
100
100
});
101
101
```
102
102
103
+
---
104
+
103
105
### Environment variable
104
106
105
107
Lambdas are executed in worker threads. Only variables declared in your `serverless.yml` are injected into `process.env` except `IS_LOCAL`, `LOCAL_PORT` and `NODE_ENV`.
106
108
107
-
### Disable functions
109
+
---
110
+
111
+
### Extended properties
108
112
109
-
Adding the param `online: false` will omit the deployement of your Lambda.
113
+
- `online`
114
+
Adding the param `online: false` will omit the deployement of your Lambda.
110
115
111
116
```yaml
112
117
functions:
@@ -115,9 +120,25 @@ functions:
115
120
online: false
116
121
```
117
122
123
+
- `files`
124
+
include additionnal files into the package.
125
+
126
+
```yaml
127
+
functions:
128
+
myAwsomeLambda:
129
+
handler: src/handlers/awsomeLambda.default
130
+
files:
131
+
- ./resources/some/file.png
132
+
- ./resources/anotherFile.pdf
133
+
```
134
+
135
+
- `virtualEnvs`
136
+
on key-value object which will only be available inside [defineConfig](resources/defineConfig.md).
137
+
by default virtualEnvs are inherited from custom > virtualEnvs if exists.
138
+
118
139
---
119
140
120
-
## Advanced configuration:
141
+
### Advanced configuration:
121
142
122
143
To have more control over the plugin you can passe a config file via `configPath` param in plugin options:
123
144
@@ -138,7 +159,7 @@ See [defineConfig](resources/defineConfig.md) for advanced configuration.
Copy file name to clipboardExpand all lines: package.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "serverless-aws-lambda",
3
-
"version": "4.3.0",
3
+
"version": "4.3.1",
4
4
"description": "AWS Application Load Balancer and API Gateway - Lambda dev tool for Serverless. Allows Express synthax in handlers. Supports packaging, local invoking and offline real ALB and APG lambda server mocking.",
0 commit comments