docs: def retry_on_ec2_error(self, func, *args, **kwargs):
          """
          Call the given method with the given arguments, retrying if the call
          failed due to an EC2ResponseError. This method will wait at most 30
          seconds and perform up to 6 retries. If the method still fails, it will
          propagate the error.
  
          :param func: Function to call
          :type func: function
          """
          exception_retry_count = 6
          while True:
              try:
                  return func(*args, **kwargs)
              except (boto.exception.EC2ResponseError, ssl.SSLError) as msg:
                  exception_retry_count -= 1
                  if exception_retry_count <= 0:
                      raise msg
                  time.sleep(5)