| Key | Value |
|---|---|
| Environment | LocalStack |
| Services | Lambda |
| Integrations | Cloud Development Kit |
| Categories | Serverless; Developer Experience |
A demonstration of how to hot reload TypeScript Lambda functions with the Cloud Development Kit (CDK) using LocalStack. For more details on LocalStack's Hot Reloading feature, see the documentation.
- A valid LocalStack for AWS license. Your license provides a
LOCALSTACK_AUTH_TOKENto activate LocalStack. localstackCLI- AWS CLI with
awslocal - Node.js
- Docker
- AWS CDK with
cdklocal
make checkmake installexport LOCALSTACK_AUTH_TOKEN=<your-auth-token>
make start
make readymake deployThe deployment process:
- Compiles the TypeScript Lambda function.
- Bootstraps the CDK application.
- Deploys the CDK stack to LocalStack.
make runGo to lib/fn/index.ts and make a change to the Lambda function. Save the file and re-run the test invocation. The changes should be reflected in the output.
make stopThis code is available under the Apache 2.0 license.