capabilities.work

Decommission Rule

A 3-step recipe with Amazon EventBridge. We can help you get access.

Recipe · 3 steps

Decommission Rule

Remove a rule's targets and then delete the rule.

  1. List the rule's current targets before removing them.
  2. Remove the supplied targets from the rule, forcing removal if needed.
  3. Delete the now-empty rule from the event bus.
What you'll need to have ready
  • ruleName: The name of the rule to decommission.
  • eventBusName: The name or ARN of the event bus the rule lives on.
  • targetIds: The IDs of the targets to remove from the rule.
For your developer

Arazzo workflow amazon-eventbridge:decommission-rule, 3 operations: ListTargetsByRule → RemoveTargets → DeleteRule. Specs on APIs.io.