예제 #1
0
파일: orbital.py 프로젝트: fundagram/phabio
def launch():    
    try:
        instanceList = aws.launchEC2Image()
        print instanceList[0].id        
        nodeList.append(instanceList[0].id)
        return Response('{ "instanceid":"'+instanceList[0].id+'"}', 200, mimetype='application/json')
    except:
        traceback.print_exc()
        return Response('{ "message":"Unable to launchEC2Image" }', 400, mimetype='application/json')
예제 #2
0
파일: orbital.py 프로젝트: fundagram/phabio
def elasticdeploy():
    # here we want to deploy an instance then launch the appropriate fabric script 
    instance = aws.launchEC2Image("ElasticServer");
    return "Deploy elastic fabric... VM ID = " +instance[0].id    
예제 #3
0
파일: orbital.py 프로젝트: fundagram/phabio
def producerdeploy():
    # here we want to deploy an instance then launch the appropriate fabric script 
    instance = aws.launchEC2Image("ProducerServer");
    return "Deploy producer... VM ID= " +instance[0].id    
예제 #4
0
파일: orbital.py 프로젝트: fundagram/phabio
def kafkadeploy():
    # here we want to deploy an instance then launch the appropriate fabric script 
    instance = aws.launchEC2Image("KafkaServer");
    return "Deploy Kafka VM ID = " +instance[0].id