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
> Lambdas can technically receive any payload, but are can also be invoked from other AWS services, so it is very useful to replicate this as much as possible.
463
+
462
464
### Inject the event
463
465
464
466
Update `docker-compose.yaml`:
@@ -480,17 +482,21 @@ services:
480
482
### Test with data
481
483
482
484
```shell
483
-
docker compose up --build --abort-on-container-exit
485
+
docker compose up --abort-on-container-exit
484
486
```
485
487
486
488
```shell
487
-
LAMBDA_INPUT=@/events/custom.json docker compose up --build --abort-on-container-exit
489
+
LAMBDA_INPUT=@/events/custom.json docker compose up --abort-on-container-exit
488
490
```
489
491
490
492
```shell
491
-
LAMBDA_INPUT=@/events/api-gateway.json docker compose up --build --abort-on-container-exit
493
+
LAMBDA_INPUT=@/events/api-gateway.json docker compose up --abort-on-container-exit
492
494
```
493
495
496
+
> [!NOTE]
497
+
> With each of these commands, you'll notice that the `curl` container receives a slightly different response where the event changes.
498
+
> The first command we didn't include the `LAMBDA_INPUT` attribute, so you `docker-compose.yaml` default the input to `{}`.
0 commit comments