Search code examples
pythonaws-lambdaboto3

How to get when lambda was last modified using boto3 and python?


I want to use boto3 in a python script to get when a lambda was last updated. When I navigate to the lambda dashboard, I am able to see the last updated time as seen in my attachment.last updated text

Can I get the last modified value using boto3?


Solution

  • Call get_function_configuration on the Lambda function.

    Use the LastModified string in the response.