2024-04-11 14:23:07 +00:00
|
|
|
id: rds-event-sub-enable
|
|
|
|
info:
|
|
|
|
name: RDS Event Subscription Not Enabled
|
|
|
|
author: princechaddha
|
|
|
|
severity: high
|
|
|
|
description: |
|
|
|
|
Ensures Amazon RDS event notifications are enabled for database instance level events, allowing for real-time alerts on operational changes.
|
|
|
|
impact: |
|
|
|
|
Lack of event notifications may delay the response to critical RDS operational events, affecting database availability and performance.
|
|
|
|
remediation: |
|
|
|
|
Enable RDS event notification subscriptions for relevant database instance level events through the AWS Management Console or AWS CLI.
|
|
|
|
reference:
|
|
|
|
- https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html
|
|
|
|
tags: cloud,devops,aws,amazon,rds,aws-cloud-config
|
|
|
|
|
|
|
|
variables:
|
|
|
|
region: "ap-northeast-1"
|
|
|
|
|
|
|
|
self-contained: true
|
|
|
|
code:
|
|
|
|
- engine:
|
|
|
|
- sh
|
|
|
|
- bash
|
|
|
|
source: |
|
|
|
|
aws rds describe-event-subscriptions --region $region --query "EventSubscriptionsList[?SourceType == 'db-instance'].CustSubscriptionId"
|
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- '[]'
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- '"There are no Amazon RDS event subscriptions created for instance level events in " + region + " AWS region"'
|
2024-04-11 14:25:25 +00:00
|
|
|
# digest: 4a0a00473045022046dbc7d74b95e340ebc6d0bc27c308f378cea938470e758605822ac111ed6843022100ba1ee6fdbb6940216c57cbd8666cb56a4645ad5f8138bd63b649fb85abf80b5f:922c64590222798bb761d5b6d8e72950
|