Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit fac9259

Browse files
authored
add docs on hot reloading lambdas via web ui (#1576)
1 parent f30f0f5 commit fac9259

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed
417 KB
Loading

content/en/user-guide/lambda-tools/hot-reloading/index.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
22
title: "Hot Reloading"
3-
date: 2021-09-27
43
weight: 1
54
description: >
65
Hot code reloading continuously applies code changes to Lambda functions
76
aliases:
87
- /user-guide/tools/lambda-tools/hot-reloading/
98
---
109

10+
## Introduction
11+
1112
Hot reloading (formerly known as hot swapping) continuously applies code changes to Lambda functions without manual redeployment.
1213

1314
Quickly iterating over Lambda function code can be quite cumbersome, as you need to deploy your function on every change.
@@ -675,6 +676,24 @@ With the above example, you can make hot-reloading paths sharable between machin
675676
One example for this are checked out git repositories, where the code is located in the same structure - the absolute location of the checked out repository on the machine might however differ.
676677
If the chosen variable always points to the checked out directory, you can set the path using the placeholder in the checked out IaC template, or can share a Cloud Pod between machines.
677678

679+
## Hot Reloading on LocalStack Web Application
680+
681+
You can use the LocalStack Web Application to hot reload your Lambda functions.
682+
The [Lambda Resource Browser](https://app.localstack.cloud/inst/default/resources/lambda/functions) allows you to update your Lambda function and specify the file path for your Lambda code and dependencies.
683+
684+
To set up Lambda Hot Reloading via the LocalStack Web Application:
685+
686+
1. Navigate to the [Lambda Resource Browser](https://app.localstack.cloud/inst/default/resources/lambda/functions).
687+
2. Click **Create** to create a new Lambda function, or select **Update Function Code** for an existing Lambda function.
688+
3. In the **Code Source** section, choose **Hot Reload**.
689+
4. Enter the path to the directory containing your Lambda code for hot reloading.
690+
5. Click **Submit** to save the configuration.
691+
692+
LocalStack will automatically set up the magic S3 bucket and the S3 key pointing to your specified file path.
693+
Changes to your Lambda code locally will be reflected immediately upon saving.
694+
695+
<img src="hot-reload-lambda-web-app.png" alt="Setting Hot Reload on Web App" title="Setting Hot Reload on Web App" width="800px" />
696+
678697
## Useful Links
679698

680699
* [Lambda Code Mounting and Debugging (Python)](https://github.com/localstack/localstack-pro-samples/tree/master/lambda-mounting-and-debugging)

0 commit comments

Comments
 (0)