From 813f418f5a802792d12f6f4ff8ca80ab493b5763 Mon Sep 17 00:00:00 2001 From: Sym Roe Date: Tue, 12 Nov 2024 15:52:53 +0000 Subject: [PATCH 1/2] Grep for errors in migrating --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 87644e31d..51b2d0432 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,8 @@ lambda-migrate: ## Invoke lambda to migrate the database aws lambda invoke \ --function-name WCIVFControllerFunction \ --payload '{ "command": "migrate" }' \ - /dev/stdout + --cli-binary-format raw-in-base64-out \ + /dev/stdout | grep --invert-match 'FunctionError' lib/dc_utils: @@ -42,4 +43,3 @@ makemessages: lib/dc_utils .PHONY: compilemessages compilemessages: ${VIRTUAL_ENV}/bin/python manage.py compilemessages --ignore='env*' - From b67bcf358c7cf02fa6c2e13c6d0744b5975578f9 Mon Sep 17 00:00:00 2001 From: Sym Roe Date: Wed, 13 Nov 2024 14:20:06 +0000 Subject: [PATCH 2/2] Use AWS CLI Orb over pip installing --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 264bdd341..dad86a6bc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,6 +5,7 @@ version: 2.1 orbs: slack: circleci/slack@4.13.3 + aws-cli: circleci/aws-cli@5.1.1 executors: py312: @@ -196,7 +197,7 @@ jobs: - attach_workspace: at: ~/repo/ - run: printenv DC_ENVIRONMENT - - run: pip install awscli==1.29.5 + - aws-cli/setup - run: name: post deploy tests command: |