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

38 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "CloudWatch Events"
type: concept
tags:
- AWS
- Event-Driven
- Serverless
- Scheduling
sources:
- ctp-topic-27-aws-instance-scheduler
last_updated: 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 实现跨账户事件路由
## Related Pages
- [[AWS-Instance-Scheduler]] — 主要使用场景
- [[ctp-topic-27-aws-instance-scheduler]] — 原始来源