From 631c8ec25050d4ded942af657c921f4205313484 Mon Sep 17 00:00:00 2001 From: Tomasz Czubocha Date: Wed, 25 Nov 2026 22:07:03 +0000 Subject: [PATCH 1/3] feat(aws-node-scheduled-cron,aws-python-scheduled-cron): add a weekday cron in a time zone with EventBridge Scheduler --- README.md | 4 +- aws-node-scheduled-cron/README.md | 70 +++++++++++++++++++---- aws-node-scheduled-cron/example.json | 12 +++- aws-node-scheduled-cron/handler.js | 5 ++ aws-node-scheduled-cron/serverless.yml | 7 +++ aws-python-scheduled-cron/README.md | 72 +++++++++++++++++++----- aws-python-scheduled-cron/example.json | 12 +++- aws-python-scheduled-cron/handler.py | 5 ++ aws-python-scheduled-cron/serverless.yml | 7 +++ examples.json | 4 +- 10 files changed, 167 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index da198b4ce..dad96f18d 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ serverless deploy | [AWS Simple HTTP Endpoint example in NodeJS with Typescript](https://github.com/serverless/examples/tree/v4/aws-node-http-api-typescript)
This template demonstrates how to make a simple HTTP API with Node.js and Typescript running on AWS Lambda and API Gateway using the Serverless Framework v1. | nodeJS | | [TypeScript Serverless HTTP API with DynamoDB](https://github.com/serverless/examples/tree/v4/aws-node-http-api-typescript-dynamodb)
This example shows your how to create a TypeScript powered HTTP API with DynamoDB. | nodeJS | | [AWS S3 File Replicator](https://github.com/serverless/examples/tree/v4/aws-node-s3-file-replicator)
This example creates 2 AWS S3 buckets and copies files in one bucket to the other | nodeJS | -| [AWS Node Scheduled Cron example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-scheduled-cron)
A Node.js function on AWS Lambda that runs once a minute, triggered by the Serverless Framework schedule event. | nodeJS | +| [AWS Node Scheduled Cron example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-scheduled-cron)
A Node.js function on AWS Lambda that runs once a minute, and one that runs at 9 AM New York time on weekdays, triggered by the Serverless Framework schedule event. | nodeJS | | [AWS Lambda Self-Managed Code Storage](https://github.com/serverless/examples/tree/v4/aws-node-self-managed-code-storage)
Run Lambda function and layer code directly from the deployment bucket with self-managed code storage | nodeJS | | [AWS Serving Dynamic HTML via API Gateway example in NodeJS](https://github.com/serverless/examples/tree/v4/aws-node-serve-dynamic-html-via-http-endpoint)
This example illustrates how to hookup an API Gateway endpoint to a Lambda function to render HTML on a GET request. | nodeJS | | [The Serverless Gong](https://github.com/serverless/examples/tree/v4/aws-node-serverless-gong)
A serverless gong with GitHub and Slack webhooks | nodeJS | @@ -150,7 +150,7 @@ serverless deploy | [AWS Simple HTTP Endpoint example in Python](https://github.com/serverless/examples/tree/v4/aws-python-http-api)
This template demonstrates how to make a simple HTTP API with Python running on AWS Lambda and API Gateway using the Serverless Framework. | python | | [AWS Serverless HTTP API with DynamoDB store example in Python](https://github.com/serverless/examples/tree/v4/aws-python-http-api-with-dynamodb)
This example demonstrates how to setup an HTTP API allowing you to create, list, get, update and delete Todos. DynamoDB is used to store the data. | python | | [AWS Serverless HTTP API with DynamoDB store example in Python](https://github.com/serverless/examples/tree/v4/aws-python-http-api-with-pynamodb)
This example demonstrates how to setup an HTTP API allowing you to create, list, get, update and delete Todos. DynamoDB is used to store the data. | python | -| [AWS Python Scheduled Cron example in Python](https://github.com/serverless/examples/tree/v4/aws-python-scheduled-cron)
A Python function on AWS Lambda that runs once a minute, triggered by the Serverless Framework schedule event. | python | +| [AWS Python Scheduled Cron example in Python](https://github.com/serverless/examples/tree/v4/aws-python-scheduled-cron)
A Python function on AWS Lambda that runs once a minute, and one that runs at 9 AM New York time on weekdays, triggered by the Serverless Framework schedule event. | python | | [AWS Simple HTTP Endpoint example in Python](https://github.com/serverless/examples/tree/v4/aws-python-simple-http-endpoint)
This example demonstrates how to setup a simple HTTP GET endpoint. Once you ping it, it will reply with the current time. | python | | [Python SQS Producer Consumer on AWS](https://github.com/serverless/examples/tree/v4/aws-python-sqs-worker)
This template demonstrates how to develop and deploy a simple SQS-based producer-consumer service running on AWS Lambda using the traditional Serverless Framework. | python | | [Python Telegram Bot](https://github.com/serverless/examples/tree/v4/aws-python-telegram-bot)
This example demonstrates how to setup an echo Telegram Bot using the Serverless Framework. | python | diff --git a/aws-node-scheduled-cron/README.md b/aws-node-scheduled-cron/README.md index c84369d3e..acd2f7880 100644 --- a/aws-node-scheduled-cron/README.md +++ b/aws-node-scheduled-cron/README.md @@ -1,6 +1,6 @@