Skip to content

Commit 206c252

Browse files
committed
Update README.md
1 parent d1c44a7 commit 206c252

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,39 @@ services:
393393
AWS_LAMBDA_LOG_FORMAT: JSON
394394
```
395395
396+
### Check the updated values
397+
398+
Run the following command:
399+
400+
```shell
401+
docker compose up --abort-on-container-exit
402+
```
403+
404+
> [!NOTE]
405+
> On this execution you'll be able to confirm two of the values are working.
406+
> Find the Lambda `REPORT` log and you'll now see `Memory Size: 128 MB Max Memory Used: 128 MB` instead of the previous `Memory Size: 3008 MB Max Memory Used: 3008 MB`.
407+
> Find the `Hello world!` log and you'll see it has now switched to a JSON structured log rather than just text.
408+
409+
### Check the timeout
410+
411+
Update `docker-compose.yaml`:
412+
413+
```yaml
414+
AWS_LAMBDA_FUNCTION_TIMEOUT: 0
415+
```
416+
417+
Run the following command:
418+
419+
```shell
420+
docker compose up --abort-on-container-exit
421+
```
422+
423+
> [!NOTE]
424+
> On this execution you'll see that the `curl` container received `Task timed out after 0.00 seconds`.
425+
> Find the Lambda `REPORT` again and you'll see `Init Duration: 0.00 ms Duration: 0.00 ms Billed Duration: 0 ms`.
426+
>
427+
> **Be sure to set `AWS_LAMBDA_FUNCTION_TIMEOUT` back to `3` now.**
428+
396429
### Create the events subdirectory
397430

398431
Create the events subdirectory in the root (keep events outside the code folder):

0 commit comments

Comments
 (0)