import json


def is_bootstrap(event):
    """
    Determines if the message sent in was for an bootstrap action -
    Bootstrap (success) events are always just strings so loading it as json should
    raise a ValueError
    """
    try:
        message = json.loads(event['Records'][0]['Sns']['Message'])
        if isinstance(message, dict):
            if message.get('Error'):
                return True
        return False
    except ValueError:
        return True