如何在特定时间在AWS中触发Lambda函数? [英] How to trigger a Lambda function at specific time in AWS?

查看:496
本文介绍了如何在特定时间在AWS中触发Lambda函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道可以用来重复运行Lambda的CloudWatch重复事件..但是有什么方法可以在一定时间触发它而不重复吗?

I am aware of the CloudWatch recurring events that can be used to run Lambda recurringly.. but is there a way that I can trigger it on a certain time and not repeat?

推荐答案

,您可以为其提供cron表达式或比率.您正在寻找的是cron表达式选项,该选项可让您说出确切的运行时间. 更多信息- https://docs. aws.amazon.com/lambda/latest/dg/tutorial-scheduled-events-schedule-expressions.html

you can provide to it a cron expression or rate. what you are looking for is the cron expression option that will let you to say when exactly to run. more info - https://docs.aws.amazon.com/lambda/latest/dg/tutorial-scheduled-events-schedule-expressions.html

如果要手动运行一次,则始终可以使用页面顶部的测试"按钮来触发它.您确实可以在这里发挥创造力,例如,您甚至可以通过http请求触发它,从而将其轻松集成到所需的任何内容中(

if you want to run it once, manually, you can always trigger it with the "test" button at the top of the page. you can really be creative here, for example, you can even trigger it with an http request that will allow you to integrate it to whatever you want, super easily (Invoke a AWS Lambda function by a http request)

这篇关于如何在特定时间在AWS中触发Lambda函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆