AWS Lambda Instrumentation (serverless)
Capture runtime coverage from Node.js AWS Lambda functions by attaching the SeaLights Lambda Layer.
1
Scan the Lambda code
npx slnodejs scan \
--tokenFile ./sltoken.txt \
--buildSessionIdFile buildSessionId \
--scanDir ./src \
--awsConfigure- name: SeaLights scan (Lambda)
run: |
npx slnodejs scan \
--token "${{ secrets.SL_TOKEN }}" \
--buildSessionIdFile buildSessionId \
--scanDir ./src \
--awsConfigure2
3
4
References
How the Lambda wrapper works


Working with other Lambda layers
Tool
Exec wrapper value
Behavior
Troubleshooting
Parameters
Variable / setting
Purpose
Last updated
Was this helpful?

