import sys
import json
import argparse
+from time import sleep
import boto3
from argparse import ArgumentParser
from datetime import datetime, timedelta
print data
sys.stdout.flush()
print '-----END RC OUTPUT-----\n\n'
+ sys.stdout.flush()
+ sleep(1)
def stop_instances(ids):
assert type(ids) == list
print "tags = %s" % unicode_to_str(instance.tags)
print "virtualization_type = %s" % instance.virtualization_type
print "vpc_id = %s" % instance.vpc_id
+ sys.stdout.flush()
def get_essential_info_from_instance(instance_id):
if type(instance_id) == list:
json.loads(args.ebsoptimized.lower()),
tags)
print '\nMAIN FINISHED AT %s' % (str(datetime.now()))
+ sys.stdout.flush()
+ sleep(1)
def argument_parsing(argv):
"""Any arguments passed from user"""