Exemple #1
0
 def __init__(self, aws_properties):
     GenericClient.__init__(self, aws_properties)
     self.lambda_properties = aws_properties['lambda']
     self.batch_properties = aws_properties['batch']
     self.iam_properties = aws_properties['iam']
     self.instance_role = "arn:aws:iam::{0}:instance-profile/ecsInstanceRole".format(aws_properties['account_id'])
     self.service_role = "arn:aws:iam::{0}:role/service-role/AWSBatchServiceRole".format(aws_properties['account_id'])  
Exemple #2
0
 def __init__(self, aws_properties):
     GenericClient.__init__(self, aws_properties)
     self.properties = aws_properties['lambda']
     self.properties['environment'] = {'Variables': {}}
     self.properties['zip_file_path'] = utils.join_paths(
         utils.get_temp_dir(), 'function.zip')
     self.properties['invocation_type'] = 'RequestResponse'
     self.properties['log_type'] = 'Tail'
     if 'name' in self.properties:
         self.properties['handler'] = "{0}.lambda_handler".format(
             self.properties['name'])
     if 'asynchronous' not in self.properties:
         self.properties['asynchronous'] = False
Exemple #3
0
 def __init__(self, aws_properties):
     GenericClient.__init__(self, aws_properties)
     self.properties = aws_properties['api_gateway']
     self.set_api_lambda_uri()
Exemple #4
0
 def __init__(self, aws_properties):
     GenericClient.__init__(self, aws_properties)
     self.properties = self.aws_properties['cloudwatch']
Exemple #5
0
 def __init__(self, aws_properties):
     GenericClient.__init__(self, aws_properties)
     self.properties = aws_properties['s3']
     self.parse_input_folder()
Exemple #6
0
 def __init__(self, aws_properties):
     GenericClient.__init__(self, aws_properties)
     self.aws_properties = aws_properties
     self.lambda_properties = aws_properties['lambda']
     self.batch_properties = aws_properties['batch']
     self.iam_properties = aws_properties['iam']