Files
nexus/wiki/concepts/CloudWatch-Events.md

1.2 KiB
Raw Blame History

title, type, tags, sources, last_updated
title type tags sources last_updated
CloudWatch Events concept
AWS
Event-Driven
Serverless
Scheduling
ctp-topic-27-aws-instance-scheduler
2026-05-12

CloudWatch Events

AWS 事件驱动服务(原名 Amazon EventBridge用于构建事件驱动的架构实现 AWS 资源变更与应用程序之间的自动化响应。

Role in AWS Instance Scheduler

在 AWS Instance Scheduler 架构中CloudWatch Events 充当定时触发器

  • 默认触发间隔:每 15 分钟触发一次
  • 触发目标Lambda 函数
  • 事件内容:包含当前时间戳和调度评估所需的上下文信息
  • Lambda 函数读取 DynamoDB 中的调度配置,根据实例标签决定是否执行启停操作

Key Characteristics

  • 完全托管:无需管理服务器或基础设施
  • 近实时:支持分钟级定时触发
  • 规则驱动通过规则Rule定义事件模式和目标
  • 多目标支持:可触发 Lambda、ECS 任务、SQS 队列等多种目标
  • 跨账户事件:配合 EventBridge Bus 实现跨账户事件路由