Get Lambda Functions in a CloudFormation Stack

An AWS CLI command to retrieve all AWS Lambda function resources in a named CloudFormation Stack

AWS CLI command that retrieves all the resources in a CloudFormation stack and queries the returned data for ResourceType of 'AWS::Lambda::Function'

aws cloudformation list-stack-resources --stack-name (stack id) --query "StackResourceSummaries[?ResourceType=='AWS::Lambda::Function'].{LogicalResourceId: LogicalResourceId, PhysicalResourceId: PhysicalResourceId, LastUpdate: LastUpdatedTimestamp}"
                                


Created by:

Paul Johnston

Paul Johnston

CTO, Consultant, Interim and Strategist (and ex-Serverless Developer Advocate at AWS)

Follow on LinkedIn