Skip to main content

Posts

Showing posts with the label lambda

List the AWS Lambda function information

In this blog, I will share the Python script that will help you to list the AWS Lambda function details such as Function name, Function ARN, Run time, Description and Version etc... I will be using Tabulate module to format my output in to table format. If you are new to Tabulate, please visit my previous blog where I have provided details of Tabulate module. The following Python code is written in to Python 3.8 version.  import boto3 from tabulate import tabulate   After importing the Boto3 and Tabulate module, let's setup our AWS session details by providing region and profile name.  profile = "default" region = "us-east-1" session = boto3 . Session ( profile_name = profile , region_name = region ) lambda_client = session . client ( 'lambda' ) response = lambda_client .list_functions() # Get the list of functions lambda_list = response [ 'Functions' ] The following code will help you to setup a Header row in the table  # Setup heade