Refactor the EzidPublisher, ProvenanceNotifier and PdfDownloader Lambdas to extract shared logic into a new class in the Lambda Layer.
Also introduce retry logic that should:
Maintain a counter
Retry calls to the external service 3 times with a 5 second pause between calls
Republish the event with a detail-type = 'paused' to get the event to end up in the EventBridge archive where we can replay once the issue with the external service has been resolved
Refactor the EzidPublisher, ProvenanceNotifier and PdfDownloader Lambdas to extract shared logic into a new class in the Lambda Layer.
Also introduce retry logic that should:
detail-type = 'paused'
to get the event to end up in the EventBridge archive where we can replay once the issue with the external service has been resolved