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)
def delete_stack(stack_name, environment, project): return cf_stack.delete_stack(stack_name, environment, project)