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
@@ -65,10 +60,27 @@ Description of the function/functions.
65
60
"You have successfully called this lambda!"
66
61
```
67
62
68
-
## Running a different handler in the container
63
+
## Running a Specific Handler Locally with Docker
69
64
70
65
If this repo contains multiple lambda functions, you can call any handler you copy into the container (see Dockerfile) by name as part of the `docker run` command:
71
66
72
67
```bash
73
68
docker run -p 9000:8080 my_function:latest lambdas.<a-different-module>.lambda_handler
74
69
```
70
+
71
+
## Environment Variables
72
+
73
+
### Required
74
+
75
+
```shell
76
+
SENTRY_DSN=### If set to a valid Sentry DSN, enables Sentry exception monitoring. This is not needed for local development.
77
+
WORKSPACE=### Set to `dev` for local development, this will be set to `stage` and `prod` in those environments by Terraform.
78
+
```
79
+
80
+
### Optional
81
+
82
+
_Delete this section if it isn't applicable to the PR._
83
+
84
+
```shell
85
+
<OPTIONAL_ENV>=### Description for optional environment variable
0 commit comments