How do I configure notifications for Amazon RDS or Amazon Redshift maintenance windows?

3 minute read
0

I want to set up notifications for Amazon Relational Database Service (Amazon RDS) and Amazon Redshift maintenance windows to minimize the affect on my resources.

Resolution

Set up event notifications for Amazon RDS and Amazon Redshift clusters and instances so that you receive notifications regarding on-going or completed maintenance. You can use Amazon Simple Notification Service (Amazon SNS) to receive these notifications by either email or SMS.

You can see the Amazon RDS DB instances that are scheduled to receive hardware maintenance during your maintenance window. To do so, review the DB instances that are listed in the Affected resources tab. For more information, see the maintenance notification email sent to your account.

When the maintenance is in progress, Single-AZ deployments are unavailable for a few minutes during that maintenance window. Suppose that you use a Multi-AZ deployment and the primary DB instance is in an affected Availability Zone while the maintenance is in progress. The database isn't available until failover is complete, which is usually about 60 seconds. (Note that this failover occurs in your maintenance window). If the primary DB instance isn't in an affected Availability Zone while the maintenance is in progress, then the secondary is replaced. The secondary is replaced during your maintenance window without failover and without affecting availability. To identify the Availability Zone of your primary or secondary DB instance, see describe-db-instances.

Amazon RDS

To configure event notifications for Amazon RDS, complete the following steps:

  1. Create an Amazon Simple Notification Service (Amazon SNS) topic. Then, use your endpoints to subscribe to a topic, such as email accounts or mobile numbers.
  2. Open the Amazon RDS console. From the navigate pane, choose Event subscriptions.
  3. Choose Create event subscription.
  4. On the Create event subscription page, enter the following information:
    For Name, enter a name for the subscription.
    For Target, select Amazon Resource Name (ARN), and then choose the ARN for the SNS topic.
    Under Source, select Instances as the Source type.
    Choose Select specific instances, and then select your instance.
    Choose Select specific event categories, and then select Maintenance.
  5. Choose Create.

After you create an event subscription, you receive notifications with the following event codes:

  • RDS-EVENT-0026 for maintenance in progress.
  • RDS-EVENT-0027 for maintenance that is complete.

Amazon Redshift

To configure event notifications for Amazon Redshift, complete the following steps:

  1. Open the Amazon Redshift console. From the navigation pane, choose Events.
  2. Choose Event Subscriptions, and then choose Create event subscription.
  3. On the Create event subscription page, enter the following information:
    In the Subscription details section, under Event subscription name, enter a name for this event.
    In the Subscription type section, under Source type, choose Cluster.
    For Cluster, choose Select cluster, and then choose your cluster IDs.
    For Categories, choose your categories.
    For Severity, choose Error or Info, Error.
    In the Subscription actions section, create a topic or choose an existing topic.
  4. Choose Create event subscription.

After you create an event subscription, you receive notifications with the following event codes:

  • REDSHIFT-EVENT-2003 for Amazon Redshift maintenance in progress.
  • REDSHIFT-EVENT-2004 for Amazon Redshift maintenance that is complete.

Note: Amazon Redshift scheduled maintenance doesn't initiate an event. To view upcoming maintenance windows, see Maintenance windows.

Related information

Working with Amazon RDS event notification

Amazon Redshift event notifications

Maintaining a DB instance

How do I minimize downtime during required Amazon RDS maintenance?

2 Comments

I created AWS Chatbot and integrated it with both RDS and Redshift events. I can receive RDS events in Slack but for Redshift only cloudtrail events, I don't receive Redshift maintenance events in slack, this only available via email. Any idea what might be wrong?

OK
replied 5 days ago

Thank you for your comment. We'll review and update the Knowledge Center article as needed.

profile pictureAWS
MODERATOR
replied 3 days ago