# Create Scheduled Event Dynamically

**URL:** <https://forum.serverless.com/t/create-scheduled-event-dynamically/2808>\
**Category:** Serverless Framework\
**Created:** [October 3, 2017, 12:38pm UTC](https://forum.serverless.com/t/create-scheduled-event-dynamically/2808 "2017-10-03T12:38:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anubhavg](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@anubhavg](https://forum.serverless.com/u/anubhavg)\
**Post date:** [October 3, 2017, 12:38pm UTC](https://forum.serverless.com/t/create-scheduled-event-dynamically/2808/1 "2017-10-03T12:38:45Z")

</div>

I want to trigger a lambda function at the time specified by the user at run time and perform specific action like sending email or text. I know i can run a cron job which runs every minute to match the user specified time and send the mail or sms but that will execute the function every single minute which i don’t want. Can someone suggest me the better way of doing this using scheduling.

---

<div class="post-metadata">

**Author:** ![buggy](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/buggy/32/177_2.png) [@buggy](https://forum.serverless.com/u/buggy)\
**Post date:** [October 16, 2017, 9:33am UTC](https://forum.serverless.com/t/create-scheduled-event-dynamically/2808/2 "2017-10-16T09:33:02Z")

</div>

You could schedule a Cloud Watch Event via the API

[http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CloudWatchEvents.html#putRule-property](http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CloudWatchEvents.html#putRule-property)
