Amazon RDS 이벤트 알림 규칙(Feat. AWS CloudWatch, Amazon EventBridge)(Amazon RDS event notification rules)



## Amazon RDS 이벤트 알림 규칙(Feat. AWS CloudWatch, Amazon EventBridge)(Amazon RDS event notification rules)

AWS Lambda 와 함께 AWS CloudWatch, Amazon EventBridge의 RDS 상태 변경과 관련된 규칙을 사용하고 싶을 때 아래와 같이 설정하면 됩니다.

[해당 페이지](https://docs.aws.amazon.com/ko_kr/AmazonRDS/latest/UserGuide/USER_Events.html)에서 더 자세히 확인하실 수 있습니다.


#### RDS Cluster가 중지됐을 때

```
{
  "source": [
    "aws.rds"
  ],
  "detail-type": [
    "RDS DB Cluster Event"
  ],
  "detail": {
    "EventID": [
      "RDS-EVENT-0150"
    ],
    "EventCategories": [
      "notification"
    ],
    "SourceType": [
      "CLUSTER"
    ],
    "SourceArn": [
      "arn:aws:rds:ap-northeast-2:xxxxxxxxxxx" # 해당 RDS cluster 의 arn
    ],
    "SourceIdentifier": [
      "xxxxxxxx" # 해당 RDS cluster 의 DB 식별자
    ]
  }
}
```

#### RDS Cluster가 시작됐을 때

```
{
  "source": [
    "aws.rds"
  ],
  "detail-type": [
    "RDS DB Cluster Event"
  ],
  "detail": {
    "EventID": [
      "RDS-EVENT-0151"
    ],
    "EventCategories": [
      "notification"
    ],
    "SourceType": [
      "CLUSTER"
    ],
    "SourceArn": [
      "arn:aws:rds:ap-northeast-2:xxxxxxxxxxx" # 해당 RDS cluster 의 arn
    ],
    "SourceIdentifier": [
      "xxxxxxxx" # 해당 RDS cluster 의 DB 식별자
    ]
  }
}
```

#### RDS Instance가 중지됐을 때

```
{
  "source": [
    "aws.rds"
  ],
  "detail-type": [
    "RDS DB Instance Event"
  ],
  "detail": {
    "EventID": [
      "RDS-EVENT-0087"
    ],
    "EventCategories": [
      "notification"
    ],
    "SourceType": [
      "DB_INSTANCE"
    ],
    "SourceArn": [
      "arn:aws:rds:ap-northeast-2:xxxxxxxxxxx" # 해당 RDS instance 의 arn
    ],
    "SourceIdentifier": [
      "xxxxxxxx" # 해당 RDS instance 의 DB 식별자
    ]
  }
}
```

#### RDS Instance가 시작됐을 때

```
{
  "source": [
    "aws.rds"
  ],
  "detail-type": [
    "RDS DB Instance Event"
  ],
  "detail": {
    "EventID": [
      "RDS-EVENT-0088"
    ],
    "EventCategories": [
      "notification"
    ],
    "SourceType": [
      "DB_INSTANCE"
    ],
    "SourceArn": [
      "arn:aws:rds:ap-northeast-2:xxxxxxxxxxx" # 해당 RDS instance 의 arn
    ],
    "SourceIdentifier": [
      "xxxxxxxx" # 해당 RDS instance 의 DB 식별자
    ]
  }
}
```


##### 참고

https://docs.aws.amazon.com/ko_kr/AmazonRDS/latest/UserGuide/USER_Events.html


댓글

이 블로그의 인기 게시물

부트스트랩 사용 시 버튼 오른쪽 정렬하는 방법 (How to use float-right for right align in bootstrap)

맥(Mac)에서 MySql 사용 시 Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 오류가 발생하는 경우 해결 방법

HTML, CSS - footer fixed (foot 하단 고정 시키기)