Commit f110408
fix: expose lambda handler files via node_modules symlinks
aws-lambda-ric invokes the handler as a bare specifier —
"a9-handler-index" — and Node resolves bare names only through
node_modules. Our handler files live at /artillery/a9-handler-*.js,
unreachable that way. The previous bookworm-slim build appears to
have cached an older aws-lambda-ric whose fallback path.resolve logic
tolerated this; the DHI build pulls a newer version that doesn't.
Symlink each of the three handler files into /artillery/node_modules/.
Node follows the symlinks and uses the target's directory as
__dirname, so the relative require('./a9-handler-helpers') calls
inside the handler continue to resolve.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a323d61 commit f110408
1 file changed
Lines changed: 10 additions & 0 deletions
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
219 | 229 | | |
220 | 230 | | |
221 | 231 | | |
| |||
0 commit comments