Exemplo n.º 1
0
def delete_stack(stack_id=None):
    """Delete a stack"""

    if stack_id is None:
        if 'stack_id' not in env:
            raise Exception('Stack name not defined')
        stack_id = env.stack_id

    delete_failed_stacks = None
    if 'delete_failed_stacks' in env:
        delete_failed_stacks = env.delete_failed_stacks

    return cf_stack.delete_stack(stack_id,
                       delete_failed_stacks=delete_failed_stacks)
Exemplo n.º 2
0
def delete_stack(stack_id=None):
    """Delete a stack"""

    if stack_id is None:
        if 'stack_id' not in env:
            raise Exception('Stack name not defined')
        stack_id = env.stack_id

    delete_failed_stacks = None
    if 'delete_failed_stacks' in env:
        delete_failed_stacks = env.delete_failed_stacks

    return cf_stack.delete_stack(stack_id,
                                 delete_failed_stacks=delete_failed_stacks)
Exemplo n.º 3
0
def delete_stack(stack_name, environment, project):
    return cf_stack.delete_stack(stack_name, environment, project)
Exemplo n.º 4
0
def delete_stack(stack_name, environment, project):
	return cf_stack.delete_stack(stack_name, environment, project)