From acad28b6bcc2743f1a89c4c948243de30efd0208 Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Thu, 14 May 2020 05:03:53 -0400 Subject: [PATCH] Simple fix --- infrastructure/cloudformation/dt/lambdas.yaml | 27 ++++++++++--------- .../{lambda_handler.py => lambda_function.py} | 0 2 files changed, 14 insertions(+), 13 deletions(-) rename infrastructure/lambda/task_queue_manager/{lambda_handler.py => lambda_function.py} (100%) diff --git a/infrastructure/cloudformation/dt/lambdas.yaml b/infrastructure/cloudformation/dt/lambdas.yaml index cd48dad..5af2113 100644 --- a/infrastructure/cloudformation/dt/lambdas.yaml +++ b/infrastructure/cloudformation/dt/lambdas.yaml @@ -44,19 +44,20 @@ Resources: TaskListManagerLambda: Type: AWS::Lambda::Function - Runtime: python3.6 - Code: - S3Bucket: sumu-stacks - S3Key: !Sub "dt/${release}/lambda/task_queue_manager.zip" - FunctionName: !Sub "FnQueueManager-DT-${environment}" - Description: Adds and removes tasks from a redis list - MemorySize: 128 - Timeout: 10 - Role: !Ref QueueManagerRole - VpcConfig: - SecurityGroupIds: - - !Ref TaskListSecurityGroup - SubnetIds: !Ref SubnetIds + Properties: + Runtime: python3.7 + Code: + S3Bucket: sumu-stacks + S3Key: !Sub "dt/${release}/lambda/task_queue_manager.zip" + FunctionName: !Sub "FnQueueManager-DT-${environment}" + Description: Adds and removes tasks from a redis list + MemorySize: 128 + Timeout: 10 + Role: !Ref QueueManagerRole + VpcConfig: + SecurityGroupIds: + - !Ref TaskListSecurityGroup + SubnetIds: !Ref SubnetIds Outputs: TaskListManager: diff --git a/infrastructure/lambda/task_queue_manager/lambda_handler.py b/infrastructure/lambda/task_queue_manager/lambda_function.py similarity index 100% rename from infrastructure/lambda/task_queue_manager/lambda_handler.py rename to infrastructure/lambda/task_queue_manager/lambda_function.py