def handle(self, *args, **kwargs): c = get_context() take_down_ec2(c) tags = {"Project": "aws-initial-testing", "Use": "messing-around", "ResponsibleParty": settings.AWS_RESPONSIBLE_PARTY, } my_security_group = settings.AWS_SECURITY_GROUP_NAME print create_new_db_cluster(c, [my_security_group], tags)
def handle(self, *args, **kwargs): c = get_context() region_name = getattr(settings, 'AWS_REGION_NAME', 'us-west-2') take_down_ec2(c) try: manage_vpcs(c) launch_ec2(c) except Exception as ex: print ex print "Failed to launch" raise
def handle(self, *args, **kwargs): c = get_context() region_name = getattr(settings, "AWS_REGION_NAME", "us-west-2") take_down_ec2(c) try: manage_vpcs(c) launch_ec2(c) except Exception as ex: print ex print "Failed to launch" raise
def handle(self, *args, **kwargs): c = get_context() take_down_ec2(c) tags = { "Project": "aws-initial-testing", "Use": "messing-around", "ResponsibleParty": settings.AWS_RESPONSIBLE_PARTY, } my_security_group = settings.AWS_SECURITY_GROUP_NAME print create_new_db_cluster(c, [my_security_group], tags)
def cleanup_all(c): BuildData.objects.all().delete() take_down_ec2(c)
def cleanup_all(c): BuildData.objects.all().delete() take_down_ec2(c)