logs command provides a shortcut to accessing the CloudWatch Logs output from the Lambda Functions that back your custom Config Rules. Logs are displayed in chronological order going back the number of log entries specified by the
--number flag (default 3). It supports a
--follow flag similar to the UNIX command
tail so that you can choose to continually poll CloudWatch to deliver new log items as they are delivered by your Lambda function.
In addition to any output that your function emits via
console.log() commands, Lambda will also record log lines for the start and stop of each Lambda invocation, including the runtime and memory usage.
usage: rdk logs <rulename> [-n/--number NUMBER] [-f/--follow]
|<rulename>||Rule whose logs will be displayed|
[optional] Continuously poll Lambda logs and write to stdout.
[optional] Number of previous logged events to display.