Search code examples
amazon-web-servicesapiaws-event-bridge

AWS EventBridge API Destination Responses


While I understand EventBridge will retry sending an event - through a rule - to a target, such as an API Destination, is there any way to read the receiving API's response code and any returned messages for the respective invocation (i.e., the original invocation and any subsequent retries)?

What I have: an event triggered from a Step Function, which is sent to EventBridge. The Event is filtered by an "app ID" rule, and invokes an external API (note: note one of the pre-integrated API's available via AWS). I am able to receive the API call using webhook.site, however, I would like to use the response data inside the sending web app. As such, I need to be able to call the latest API response on demand - and would like to keep trying failed attempts periodically for a pre-set period of approx 14 days.


Solution

  • No there is no such way, unless you implement a custom solution for that yourself. For example, have EB rule trigger a lambda function, which is going to save event and its metadata in a dynamodb. Then you can manage invocations of your other target yourself.