|
| 1 | +{ |
| 2 | + "title": "EventBridge Scheduler to publish daily list of inactive functions to SNS", |
| 3 | + "description": "Daily running Amazon EventBridge scheduler and invokes a state machine to find Inactive Lambda functions and publish the list to a SNS topic.", |
| 4 | + "language": "Python", |
| 5 | + "level": "200", |
| 6 | + "framework": "SAM", |
| 7 | + "introBox": { |
| 8 | + "headline": "How it works", |
| 9 | + "text": [ |
| 10 | + "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." |
| 11 | + ] |
| 12 | + }, |
| 13 | + "gitHub": { |
| 14 | + "template": { |
| 15 | + "repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/eventbridge-stepfunction-lambda-getfunctionstatus", |
| 16 | + "templateURL": "serverless-patterns/eventbridge-stepfunction-lambda-getfunctionstatus", |
| 17 | + "projectFolder": "eventbridge-stepfunction-lambda-getfunctionstatus", |
| 18 | + "templateFile": "template.yaml" |
| 19 | + } |
| 20 | + }, |
| 21 | + "resources": { |
| 22 | + "bullets": [ |
| 23 | + { |
| 24 | + "text": "Introducing Amazon EventBridge Scheduler", |
| 25 | + "link": "https://aws.amazon.com/blogs/compute/introducing-amazon-eventbridge-scheduler/" |
| 26 | + }, |
| 27 | + { |
| 28 | + "text": "Amazon EventBridge Scheduler Docs", |
| 29 | + "link": "https://docs.aws.amazon.com/scheduler/latest/UserGuide/what-is-scheduler.html" |
| 30 | + }, |
| 31 | + { |
| 32 | + "text": "Amazon EventBridge Scheduler Docs", |
| 33 | + "link": "https://docs.aws.amazon.com/lambda/latest/api/API_ListFunctions.html" |
| 34 | + }, |
| 35 | + { |
| 36 | + "text": "Lambda ListFunctions API", |
| 37 | + "link": "https://docs.aws.amazon.com/scheduler/latest/UserGuide/what-is-scheduler.html" |
| 38 | + }, |
| 39 | + { |
| 40 | + "text": "Lambda GetFunction API", |
| 41 | + "link": "https://docs.aws.amazon.com/lambda/latest/api/API_GetFunction.html" |
| 42 | + }, |
| 43 | + { |
| 44 | + "text": "SNS Publish API", |
| 45 | + "link": "https://docs.aws.amazon.com/sns/latest/api/API_Publish.html" |
| 46 | + } |
| 47 | + ] |
| 48 | + }, |
| 49 | + "deploy": { |
| 50 | + "text": ["sam deploy"] |
| 51 | + }, |
| 52 | + "testing": { |
| 53 | + "text": ["See the GitHub repo for detailed testing instructions."] |
| 54 | + }, |
| 55 | + "cleanup": { |
| 56 | + "text": ["Delete the stack: <code>sam delete</code>."] |
| 57 | + }, |
| 58 | + "authors": [ |
| 59 | + { |
| 60 | + "name": "Sahil Kapoor", |
| 61 | + "image": "https://media.licdn.com/dms/image/v2/D5603AQHTVptga3RxcA/profile-displayphoto-shrink_800_800/B56ZO3ZfseHoAc-/0/1733948735068?e=1739404800&v=beta&t=FX6MFZ2JFH17KQc89u4gY6tQXGoMJLiLkB2qT3MtV2g", |
| 62 | + "bio": "AWS Cloud Support Engineer", |
| 63 | + "linkedin": "sahil-kapoor-503391a7", |
| 64 | + "twitter": "" |
| 65 | + } |
| 66 | + ], |
| 67 | + "patternArch": { |
| 68 | + "icon1": { |
| 69 | + "x": 20, |
| 70 | + "y": 50, |
| 71 | + "service": "eventbridge-scheduler", |
| 72 | + "label": "Amazon EventBridge Scheduler" |
| 73 | + }, |
| 74 | + "icon2": { |
| 75 | + "x": 50, |
| 76 | + "y": 50, |
| 77 | + "service": "step-functions", |
| 78 | + "label": "AWS Step Function" |
| 79 | + }, |
| 80 | + "icon3": { |
| 81 | + "x": 80, |
| 82 | + "y": 50, |
| 83 | + "service": "sns", |
| 84 | + "label": "Amazon SNS" |
| 85 | + }, |
| 86 | + "line1": { |
| 87 | + "from": "icon1", |
| 88 | + "to": "icon2", |
| 89 | + "label": "invoked daily" |
| 90 | + }, |
| 91 | + "line2": { |
| 92 | + "from": "icon2", |
| 93 | + "to": "icon3", |
| 94 | + "label": "" |
| 95 | + } |
| 96 | + } |
| 97 | +} |
0 commit comments