class SubmitJobLambdaFunction(LambdaFunctionResource): function_name = "datacollector" role = LambdaRole.get_output_attr('arn') handler = BATCH_JOB_FILE_NAME + ".lambda_handler" runtime = "python2.7" s3_bucket = BucketStorage.get_output_attr('bucket') s3_key = UploadLambdaSubmitJobZipFile.get_output_attr('id') environment = { 'variables': { 'JOB_QUEUE': BatchJobsQueue.get_input_attr('name'), 'JOB_DEFINITION': SubmitAndRuleEngineJobDefinition.get_output_attr('arn'), 'CONFIG_URL': ApplicationLoadBalancer.get_api_base_url() + "/config/batch,inventory/prd/latest", 'CONFIG_CREDENTIALS': "dXNlcjpwYWNtYW4=", 'CONFIG_SERVICE_URL': ApplicationLoadBalancer.get_http_url() + "/api/config/rule/prd/latest" } } DEPENDS_ON = [SubmitAndRuleEngineJobDefinition, BatchJobsQueue]
class RuleEngineLambdaFunction(LambdaFunctionResource): function_name = "ruleengine" role = LambdaRole.get_output_attr('arn') handler = RULE_ENGINE_JOB_FILE_NAME + ".lambda_handler" runtime = "python2.7" s3_bucket = BucketStorage.get_output_attr('bucket') s3_key = UploadLambdaRuleEngineZipFile.get_output_attr('id') environment = { 'variables': { 'JOB_QUEUE': RuleEngineJobQueue.get_input_attr('name'), 'JOB_DEFINITION': SubmitAndRuleEngineJobDefinition.get_input_attr('name') } } DEPENDS_ON = [SubmitAndRuleEngineJobDefinition, RuleEngineJobQueue]
class SubmitJobLambdaFunction(LambdaFunctionResource): function_name = "datacollector" role = LambdaRole.get_output_attr('arn') handler = BATCH_JOB_FILE_NAME + ".lambda_handler" runtime = "python2.7" s3_bucket = BucketStorage.get_output_attr('bucket') s3_key = UploadLambdaSubmitJobZipFile.get_output_attr('id') environment = { 'variables': { 'JOB_QUEUE': BatchJobsQueue.get_input_attr('name'), 'JOB_DEFINITION': SubmitAndRuleEngineJobDefinition.get_input_attr('name') } } DEPENDS_ON = [SubmitAndRuleEngineJobDefinition, BatchJobsQueue]