diff --git a/.circleci/config.yml b/.circleci/config.yml index 442b085e..efb22b11 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -119,7 +119,7 @@ jobs: # the command will exit 0 even if the invocation failed. The JSON key `FunctionError` will contain something # if there's an error. command: | - aws lambda invoke --function-name DCWebsiteManagementFunction --payload '{ "command": "migrate", "args": ["--no-input"] }' --cli-binary-format raw-in-base64-out - | grep 'FunctionError": ""' + aws lambda invoke --function-name DCWebsiteManagementFunction --payload '{ "command": "migrate", "args": ["--no-input"] }' --cli-binary-format raw-in-base64-out - | grep -v 'FunctionError' - run: name: "Invalidate CloudFront cache" command: | diff --git a/democracy_club/lambda_mange.py b/democracy_club/lambda_manage.py similarity index 100% rename from democracy_club/lambda_mange.py rename to democracy_club/lambda_manage.py diff --git a/sam-template.yaml b/sam-template.yaml index 3e1ef8a9..898c111c 100644 --- a/sam-template.yaml +++ b/sam-template.yaml @@ -136,7 +136,7 @@ Resources: Timeout: 60 Role: !Sub "arn:aws:iam::${AWS::AccountId}:role/DCWebsiteLambdaExecutionRole" CodeUri: . - Handler: democracy_club.lambda_wsgi.management_handler + Handler: democracy_club.lambda_manage.management_handler Layers: - !Ref DependenciesLayer Runtime: python3.12