@@ -18,12 +18,13 @@ The easiest way to get started is to install via npm.
18
18
19
19
## Configuring
20
20
21
- There are two ways to configure the plugin, via a JSON file or via ` serverless.yml ` .
21
+ The plugin can be configured via ` serverless.yml ` , or alternatively via environment variables.
22
+
22
23
There are two supported methods for configuring the endpoints, globally via the
23
24
` host ` property, or individually. These properties may be mixed, allowing for
24
25
global override support while also override specific endpoints.
25
26
26
- A ` host ` or individual endpoints must be configured or this plugin will be deactivated.
27
+ A ` host ` or individual endpoints must be configured, or this plugin will be deactivated.
27
28
28
29
### Configuration via serverless.yml
29
30
@@ -59,6 +60,12 @@ custom:
59
60
...
60
61
```
61
62
63
+ ### Configuration via environment variables
64
+
65
+ The following environment variables can be configured (taking precedence over the values in ` serverless.yml ` ):
66
+ * ` EDGE_PORT ` : LocalStack edge port to connect to (default: ` 4566 ` )
67
+ * ` LOCALSTACK_HOSTNAME ` : LocalStack host name to connect to (default: ` localhost ` )
68
+
62
69
### Activating the plugin for certain stages
63
70
64
71
Note the ` stages ` attribute in the config above. The ` serverless-localstack ` plugin gets activated if either:
@@ -198,6 +205,7 @@ custom:
198
205
199
206
## Change Log
200
207
208
+ * v1.0.1: Add support for Serverless projects with esbuild source config; enable config via environment variables
201
209
* v1.0.0: Allow specifying path for mountCode, to point to a relative Lambda mount path
202
210
* v0.4.36: Add patch to avoid "TypeError" in AwsDeploy plugin on Serverless v3.4.0+
203
211
* v0.4.35: Add config option to connect to additional Docker networks
0 commit comments