Skip to content

Commit d12d779

Browse files
docs: Add note on AWS CDK NodejsFunction entry autodiscovery limitation
1 parent d457633 commit d12d779

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,20 @@ export default {
336336

337337
Check the [GitHub issues](https://github.com/ServerlessLife/lambda-live-debugger/issues).
338338

339+
### AWS CDK: NodejsFunction entry autodiscovery not supported
340+
341+
The `NodejsFunction` entry autodiscovery feature is not supported. When using `NodejsFunction`, you must explicitly specify the `entry` property pointing to your Lambda handler file. The automatic entry lookup based on construct ID (e.g., looking for `stack.my-handler.ts` when the ID is `my-handler`) cannot be detected by Lambda Live Debugger.
342+
343+
```typescript
344+
// ❌ Not supported - autodiscovery based on construct ID
345+
new NodejsFunction(this, 'my-handler');
346+
347+
// ✅ Supported - explicit entry path
348+
new NodejsFunction(this, 'my-handler', {
349+
entry: 'src/handlers/my-handler.ts',
350+
});
351+
```
352+
339353
## Missing Features
340354

341355
For the current list of missing features, please refer to the [GitHub issues](https://github.com/ServerlessLife/lambda-live-debugger/issues) page. The most significant missing features at the moment are MFA authentication and additional Terraform configurations.

0 commit comments

Comments
 (0)