def __init__(self, env=None, project=None, buildNum=None, ami_id=None, profile_name=None, regions_conf=None): self.env = env self.project = project.replace('-','') self.buildNum = buildNum self.ami_id = ami_id self.profile_name = profile_name self.regions_conf = regions_conf self.environments = AWSConn.load_config(self.regions_conf).get(self.env) self.region = AWSConn.determine_region(self.environments) self.conn_ec2 = AWSConn.aws_conn_ec2(self.region, self.profile_name) self.conn_elb = AWSConn.aws_conn_elb(self.region, self.profile_name) self.conn_auto = AWSConn.aws_conn_auto(self.region, self.profile_name) self.exit_error_code = 2
def __init__(self, env=None, project=None, build_number=None, ami_id=None, profile_name=None, regions_conf=None, stack_name=None, force_redeploy=False, session=None, creation_wait=[10, 60], ready_wait=[10, 30], health_wait=[10, 30], only_new_wait=[10, 30]): self.env = env self.session = session self.project = project.replace('-', '') self.build_number = build_number self.ami_id = ami_id self.profile_name = profile_name self.regions_conf = regions_conf self.stack_name = stack_name self.force_redeploy = force_redeploy self.stack_resources = False self.autoscaling_group = False self.cloudwatch_alarms = False self.environments = AWSConn.load_config(self.regions_conf).get( self.env) self.region = AWSConn.determine_region(self.environments) self.conn_ec2 = AWSConn.aws_conn_ec2(self.region, self.profile_name) self.conn_elb = AWSConn.aws_conn_elb(self.region, self.profile_name) self.conn_auto = AWSConn.aws_conn_auto(self.region, self.profile_name) self.conn_cloudwatch = AWSConn.aws_conn_cloudwatch( self.region, self.profile_name) self.cloudformation_client = AWSConn.get_boto3_client( 'cloudformation', self.region, self.profile_name, session) self.exit_error_code = 2 self.load_balancer = False self.creation_wait = creation_wait self.ready_wait = ready_wait self.health_wait = health_wait self.only_new_wait = only_new_wait self.existing_instance_ids = [] self.new_desired_capacity = None
def __init__(self, env=None, project=None, build_number=None, ami_id=None, profile_name=None, regions_conf=None, stack_name=None, force_redeploy=False, session=None, creation_wait=[10, 60], ready_wait=[10, 30], health_wait=[10, 30], only_new_wait=[10, 30]): self.env = env self.session = session self.project = project.replace('-','') self.build_number = build_number self.ami_id = ami_id self.profile_name = profile_name self.regions_conf = regions_conf self.stack_name = stack_name self.force_redeploy = force_redeploy self.stack_resources = False self.autoscaling_groups = False self.cloudwatch_alarms = False self.environments = AWSConn.load_config(self.regions_conf).get(self.env) self.region = AWSConn.determine_region(self.environments) self.conn_ec2 = AWSConn.aws_conn_ec2(self.region, self.profile_name) self.conn_elb = AWSConn.aws_conn_elb(self.region, self.profile_name) self.conn_auto = AWSConn.aws_conn_auto(self.region, self.profile_name) self.conn_cloudwatch = AWSConn.aws_conn_cloudwatch(self.region, self.profile_name) self.cloudformation_client = AWSConn.get_boto3_client('cloudformation', self.region, self.profile_name, session) self.exit_error_code = 2 self.load_balancer = False self.creation_wait = creation_wait self.ready_wait = ready_wait self.health_wait = health_wait self.only_new_wait = only_new_wait self.existing_instance_ids = [] self.new_desired_capacity = None