Skip to content

Commit

Permalink
Merge pull request #9 from aligent/feature/event_bus_name_arn
Browse files Browse the repository at this point in the history
Use recipient URL as event bus name
  • Loading branch information
quangdo-aligent authored Oct 25, 2022
2 parents f8414df + 75029a0 commit 3abb6c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Service/EventBridgeNotifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ public function notify(AsyncEventInterface $asyncEvent, array $data): NotifierRe
$notifierResult->setAsyncEventData($data);

try {
$eventEntry['EventBusName'] = $this->config->getEventBridgeBus();
$result = $this->eventBridgeClient->putEvents([
'Entries' => [
[
'Source' => $this->config->getEventBridgeSource(),
'Detail' => $this->json->serialize($data),
'DetailType' => $asyncEvent->getEventName(),
'Resources' => [],
'Time' => time()
'Time' => time(),
'EventBusName' => $asyncEvent->getRecipientUrl()
]
]
]);
Expand Down

0 comments on commit 3abb6c8

Please sign in to comment.