diff --git a/src/helpers/eventBridge.js b/src/helpers/eventBridge.js index dc0613e..7d69f81 100644 --- a/src/helpers/eventBridge.js +++ b/src/helpers/eventBridge.js @@ -143,11 +143,13 @@ export default class EventBridge { }) .promise(); - await this.eventBridgeClient.removeTargets({ - Ids: [this.targetId], - Rule: this.ruleName, - EventBusName: this.eventBridgeName, - }); + await this.eventBridgeClient + .removeTargets({ + Ids: [this.targetId], + Rule: this.ruleName, + EventBusName: this.eventBridgeName, + }) + .promise(); await this.eventBridgeClient .deleteRule({