aws-cloudformation / aws-cloudformation-resource-providers-rds

The CloudFormation Resource Provider Package For Amazon Relational Database Service
https://aws.amazon.com/rds/
Apache License 2.0
26 stars 42 forks source link

fix(eventsubscription): Stabilize on all-sources-deleted status #551

Closed angusy29 closed 3 weeks ago

angusy29 commented 3 weeks ago

Issue #, if available:

Description of changes:

RDS EventSubscriptions recently changed the possible values of statuses on the subscription. Where if all instances in the list of sourceIds of the EventSubscription are deleted out of band, the EventSubscription goes from an active state to an all-sources-deleted state.

This change stabilizes on all-sources-deleted state.

I also discovered the following:

  1. Adding valid instances to source IDs will flip an EventSubscription from all-sources-deleted to active
  2. Modifying an EventSubscription's sourceType to a different sourceType will flip the EventSubscription from all-sources-deleted to active

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.