

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# EventBridge 규칙
<a name="eventbridge-rules"></a>

[Amazon RDS 이벤트](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.Messages.html)는 Amazon EventBridge로 전송되며 [EventBridge 규칙](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule.html)을 사용하여 해당 이벤트에 대응할 수 있습니다. 예를 들어 다음 화면에 표시된 대로 특정 DB 인스턴스 하나가 중지되거나 시작되면 이를 사용자에게 알리고 조치를 취하는 EventBridge 규칙을 생성할 수 있습니다.

![\[DB 인스턴스 정지 및 시작에 대한 EventBridge 규칙\]](http://docs.aws.amazon.com/ko_kr/prescriptive-guidance/latest/amazon-rds-monitoring-alerting/images/eventbridge-rules.png)


`The DB instance has been stopped` 이벤트를 감지하는 규칙의 Amazon RDS 이벤트 ID는 `RDS-EVENT-0087`이므로 규칙의 `Event Pattern` 속성을 다음과 같이 설정합니다.

```
{
  "source": ["aws.rds"],
  "detail-type": ["RDS DB Instance Event"],
  "detail": {
    "SourceArn": ["arn:aws:rds:eu-west-3:111122223333:db:database-3"],
    "EventID": ["RDS-EVENT-0087"]
  }
}
```

이 규칙은 DB 인스턴스 `database-3`만 모니터링하고 `RDS-EVENT-0087` 이벤트를 감시합니다. EventBridge에서 이벤트를 감지하면 [대상](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html)이라고 하는 리소스 또는 엔드포인트로 이벤트를 전송합니다. 여기에서 Amazon RDS 인스턴스가 종료될 때 수행할 조치를 지정할 수 있습니다. SNS 주제, Amazon Simple Queue Service(Amazon SQS) 대기열, 함수, AWS Lambda AWS Systems Manager 자동화, AWS Batch 작업, Amazon API Gateway 등 가능한 여러 대상으로 이벤트를 보낼 수 있습니다. 예를 들어 알림 이메일과 SMS를 전송할 SNS 주제를 생성하고 해당 SNS 주제를 EventBridge 규칙의 대상으로 지정할 수 있습니다. Amazon RDS DB 인스턴스 `database-3`이 중지된 경우 이 조건이 감지될 때 Amazon RDS는 EventBridge로 `RDS-EVENT-0087` 이벤트를 전송합니다. 그런 다음 EventBridge는 대상, 즉 SNS 주제를 직접 호출합니다. SNS 주제는 이메일(다음 그림 참조)과 SMS를 보내도록 구성됩니다.

![\[SNS 주제 구성\]](http://docs.aws.amazon.com/ko_kr/prescriptive-guidance/latest/amazon-rds-monitoring-alerting/images/sns-notification.png)
