Skip to content

Commit

Permalink
Use bash nonsense instead of a py script
Browse files Browse the repository at this point in the history
  • Loading branch information
cgodwin1 committed Feb 14, 2025
1 parent 62cbb24 commit bd8c8a0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
8 changes: 0 additions & 8 deletions .github/check_lambda_response.py

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/deploy-cdk-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ jobs:
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}
CDK_DEBUG: true
run: |
aws lambda invoke --function-name cms-eregs-${{ matrix.environment }}-migrate /dev/stdout | ./.github/check_lambda_response.py
aws lambda invoke --function-name cms-eregs-${{ matrix.environment }}-createsu /dev/stdout | ./.github/check_lambda_response.py
! aws lambda invoke --function-name cms-eregs-${{ matrix.environment }}-migrate /dev/stdout | tee /dev/stderr | grep FunctionError > /dev/null
! aws lambda invoke --function-name cms-eregs-${{ matrix.environment }}-createsu /dev/stdout | tee /dev/stderr | grep FunctionError > /dev/null
- name: Get API URL
id: get-api-url
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-experimental-cdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,9 @@ jobs:
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}
CDK_DEBUG: true
run: |
aws lambda invoke --function-name cms-eregs-eph-$PR_NUMBER-createdb /dev/stdout | ./.github/check_lambda_response.py
aws lambda invoke --function-name cms-eregs-eph-$PR_NUMBER-migrate /dev/stdout | ./.github/check_lambda_response.py
aws lambda invoke --function-name cms-eregs-eph-$PR_NUMBER-createsu /dev/stdout | ./.github/check_lambda_response.py
! aws lambda invoke --function-name cms-eregs-eph-$PR_NUMBER-createdb /dev/stdout | tee /dev/stderr | grep FunctionError > /dev/null
! aws lambda invoke --function-name cms-eregs-eph-$PR_NUMBER-migrate /dev/stdout | tee /dev/stderr | grep FunctionError > /dev/null
! aws lambda invoke --function-name cms-eregs-eph-$PR_NUMBER-createsu /dev/stdout | tee /dev/stderr | grep FunctionError > /dev/null
- name: Get API URL
id: get-api-url
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/remove-experimental-cdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
# Delete the database for this ephemeral environment
echo "Deleting database for PR: ${PR_NUMBER}"
aws lambda invoke --function-name cms-eregs-eph-$PR_NUMBER-dropdb /dev/stdout | ../.github/check_lambda_response.py
! aws lambda invoke --function-name cms-eregs-eph-$PR_NUMBER-dropdb /dev/stdout | tee /dev/stderr | grep FunctionError > /dev/null
# Generate the stack names for this PR
TEXT_EXTRACTOR_STACK="cms-eregs-eph-${PR_NUMBER}-text-extractor"
Expand Down

0 comments on commit bd8c8a0

Please sign in to comment.