Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
    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
Exemplo n.º 4
0
    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)
Exemplo n.º 5
0
def cleanup_all(c):
    BuildData.objects.all().delete()
    take_down_ec2(c)
Exemplo n.º 6
0
def cleanup_all(c):
    BuildData.objects.all().delete()
    take_down_ec2(c)