예제 #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'])  
예제 #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
예제 #3
0
 def __init__(self, aws_properties):
     GenericClient.__init__(self, aws_properties)
     self.properties = aws_properties['api_gateway']
     self.set_api_lambda_uri()
예제 #4
0
 def __init__(self, aws_properties):
     GenericClient.__init__(self, aws_properties)
     self.properties = self.aws_properties['cloudwatch']
예제 #5
0
파일: s3.py 프로젝트: ukulililixl/scar
 def __init__(self, aws_properties):
     GenericClient.__init__(self, aws_properties)
     self.properties = aws_properties['s3']
     self.parse_input_folder()
예제 #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']