Skip to content

remove SnsSubscriptions from oldTopic  #42

Description

@mapsam

The SnsSubscription function manages to remove old subscriptions in the current topic when searching for subscriptions here but it does not remove subscriptions if the topic has changed in a stack update.

For example:

  1. stack update subscribes Endpoint1 to TopicA
  2. then stack is updated to subscribe Endpoint1 to TopicB instead of TopicA

The delete method does not search TopicA for subscriptions to remove, only TopicB to avoid duplicate subscriptions. This means Endpoint1 will continue to receive messages from TopicA until it the subscription is manually deleted by an engineer.

We should update the lambda function to search for subscriptions in the oldTopic and newTopic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions