我知道make a Lambda function run on a schedule using CloudWatch (基本上模拟CRON)是可能的。 但是,基于手动触发,是否可以临时执行此操作?例如,“点击按钮”每小时运行一次Lambda函数,但仅在接下来的48小时内运行-然后停止,直到有人“按下按钮”才会再次启动。 按钮可以使用接口创建CloudWatch规则,但如何让规则在48小时后自动/自动停止? CloudWatch规则创建示例: aws events put-rule \
--name my-scheduled-rule \
--schedule-expression
我想用JAVA编写一个Lambda Handler来读取CloudWatch事件。这些事件来自媒体转换 API。
我提到的步骤:
使用AWS工具包配置eclipse。
创建了一个具有Lambda函数的AWS项目。
怀疑从这里开始:
- Which Event type shall I select to make a Lambda Handler as it is showing following options:
- S3, SNS, Custom, Stream Request Handler, Kinesis Event, Cognito Event.
注意:没
我正在尝试通过terraform创建AWS Clouwatch事件规则 variable "schedule_expression" {
default = "cron(5 * * * ? *)"
description = "the aws cloudwatch event rule scheule expression that specifies when the scheduler runs. Default is 5 minuts past the hour. for debugging use 'rate(5 minutes
我是aws的新手,当我们收到sns消息时,我的任务是重建应用程序(触发代码)。
寻找类似于下面代码的东西,但不是在时间表上使用sns,但我认为我不能使用sns事件:
// A pipeline being used as a target for a CloudWatch event rule.
import * as targets from '@aws-cdk/aws-events-targets';
import * as events from '@aws-cdk/aws-events';
// kick off the pipeline every