Skip to content

Commit

Permalink
Lambda Hot Reloading not updating function when not using Docker desk…
Browse files Browse the repository at this point in the history
…top (#1502)

Co-authored-by: MarcelStranak <[email protected]>
  • Loading branch information
drauedo and MarcelStranak authored Oct 8, 2024
1 parent e6e9b26 commit d4f0208
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions content/en/user-guide/lambda-tools/hot-reloading/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ MacOS may prompt you to grant Docker access to your target folders.
**Layer limit with hot reloading for layers:**
When hot reloading is active for a Lambda layer (Pro), the function can use at most one layer.

{{< callout >}}
Configuring the file sharing mechanism in Rancher Desktop or Colima distributions is necessary to enable hot reloading for Lambda.

* For Rancher Desktop it is required to set the configuration `LAMBDA_DOCKER_FLAGS=-e LOCALSTACK_FILE_WATCHER_STRATEGY=polling`.
* For Colima, it is required to start with the Virtiofs mount type: `colima start --vm-type vz --mount-type virtiofs`.

More information about this behavior can be found in the following [GitHub issue.](https://github.com/localstack/localstack/issues/11415#issuecomment-2341140998)

{{< /callout >}}

## Application Configuration Examples

### Hot reloading for JVM Lambdas
Expand Down

0 comments on commit d4f0208

Please sign in to comment.