Logs module

See most recent logs from the lambda function.

Usage:

python3 logs/see_logs_lambda.py –lambda_name <lambda function name>

see_logs_lambda.get_logs(lambda_name)

Retrieves and prints the most recent log events from a specified AWS Lambda function. First, the method connect to AWS CloudWatch Logs, identifies the most recent log values for the given Lambda function, and then fetches and displays it.

Parameters:

lambda_namestr

AWS lambda function from which logs will be retrieved