Cloudformation will do retry for retriable exception, such as throttling exception. However, it requires each handler to map the exception into CFN throttling error.
We should be able to auto map the exception to reduce the effort for all resource to map it. For example:
...................
} catch (AmazonServiceExceptionex) {
if (RetryUtils.isThrottlingException(ex)) {
logger.log(String.format("%s [%s] Create call throttled by downstream service", ResourceModel.TYPE_NAME, model.getAlarmName()));
returnProgressEvent.defaultFailureHandler(ex, HandlerErrorCode.Throttling);
}
..................
}
Cloudformation will do retry for retriable exception, such as throttling exception. However, it requires each handler to map the exception into CFN throttling error.
We should be able to auto map the exception to reduce the effort for all resource to map it. For example: