A Node CLI Helper to fetch Lambda logs from CloudWatch.
To get started, npm install dumptruck -g
.
To view logs, simply run dumptruck
. If you are in a Serverless project,
it will try to pull config from a serverless.yaml
in the current working directory.
Once dumptruck has launched, it will guide you through prompts to select the correct log group, these selections are made with your keyboard and are remembered locally, for ease of access on future launches.
serverless.yaml
is present in current folder)Once a Lambda has been selected, this will poll AWS for the latest events, There is still some slight lag as events go from your Lamdba to CloudWatch.
Once you close a log stream (ctrl+c
) you are presented with a direct invocation command incase you wish to skip the option selection when targeting the same lambda again.
dumptruck -p "default" -r "eu-west-1" -l "your-lambda-name-here"