Publish daily list of inactive AWS Lambda functions to Amazon SNS

Amazon EventBridge Scheduler → AWS Step Function → Amazon SNS

Daily running Amazon EventBridge scheduler invokes a state machine to find inactive Lambda functions and publish the list to a SNS topic.

Creates a one time schedule in EventBridge scheduler with a StepFunctions state machine as target. Uses the SDK integration to find the Lambda function status, returns the list of inactive functions and publishes the list to a SNS Topic.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/eventbridge-stepfunction-lambda-getfunctionstatus

Deploy

sam deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Sahil Kapoor

Sahil Kapoor

AWS Cloud Support Engineer

Follow on LinkedIn