def create_cloudformation_stack(template_url, parameters, aws_config):
 stack_name = (CLOUDFORMATION_STACK_NAME + str(int(time.time())))
 output = aws_output(['cloudformation', 'create-stack', '--disable-rollback', '--parameters', json.dumps(parameters), '--stack-name', stack_name, '--template-url', template_url], aws_config)
 output = json.loads(output)
 stack_id = output['StackId']
 Message.new(cloudformation_stack_id=stack_id)
 return wait_for_stack_status(stack_id, 'CREATE_COMPLETE', aws_config)

def create_cloudformation_stack ( template_url , parameters , aws_config ) : stack_name = ( CLOUDFORMATION_STACK_NAME + str ( int ( time . time ( ) ) ) ) output = aws_output ( [ 'cloudformation' , 'create-stack' , '--disable-rollback' , '--parameters' , json . dumps ( parameters ) , '--stack-name' , stack_name , '--template-url' , template_url ] , aws_config ) output = json . loads ( output ) stack_id = output [ 'StackId' ] Message . new ( cloudformation_stack_id = stack_id ) return wait_for_stack_status ( stack_id , 'CREATE_COMPLETE' , aws_config )
create a cloudformation stack .