def get_tag(tags: list, key: str, default=None):
    """
    Get value for tag from the [{"Key": key, "Value": value}] format returned
    by AWS
    """
    if isinstance(tags, list):
        found = [tag["Value"] for tag in tags if tag["Key"] == key]
        if len(found):
            return found[0]
    return default