def is_stack(client, stack_id, state):
    """ Returns true if the stack is in the passed state
    """
    for stack in client.describe_stacks(StackName=stack_id)['Stacks']:
        if stack['StackStatus'] == state:
            return True
    return False