cdk-lambda-log

0.1.2 • Public • Published

cdk-lambda-log

"tail" the latest Lambda function's log by one line

Usage

Just hit the command below at the root of your CDK project.

npx cdk-lambda-log

HighLights

  • ✅ Fetch and follow the latest log stream of a single Lambda function
  • ✅ Switch log stream automatically when cold start or new version of lambda is deployed
  • ✅ You do not need to specify complex Lambda function names automatically generated by CDK

Options

You can specify the stack name. If you do so, cdk-lambda-log try to search Lambda functions created by the stack.

npx cdk-lambda-log --stack-name YOUR_STACK_NAME

You can specify the function name. If you do so, cdk-lambda-log try to fetch the latest logs from Amazon CloudWatch.

npx cdk-lambda-log --function-name YOUR_LAMBDA_FUNCTION_NAME

Note

cdk-lambda-log is developed for use in debugging during development. As such, it only displays logs from the most recent log stream. If you want to view multiple log streams in a production environment, you can use cdk watch or sam logs.

Readme

Keywords

Package Sidebar

Install

npm i cdk-lambda-log

Weekly Downloads

7

Version

0.1.2

License

MIT

Unpacked Size

17.2 kB

Total Files

8

Last publish

Collaborators

  • tbrand