Skip to content

Commit

Permalink
Use python as a script
Browse files Browse the repository at this point in the history
  • Loading branch information
cgodwin1 committed Feb 14, 2025
1 parent 0fc8dfb commit 62cbb24
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/check_lambda_response.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

import sys
import json

Expand Down
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 | python ./.github/check_lambda_response.py
aws lambda invoke --function-name cms-eregs-${{ matrix.environment }}-createsu /dev/stdout | python ./.github/check_lambda_response.py
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
- 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 | python ./.github/check_lambda_response.py
aws lambda invoke --function-name cms-eregs-eph-$PR_NUMBER-migrate /dev/stdout | python ./.github/check_lambda_response.py
aws lambda invoke --function-name cms-eregs-eph-$PR_NUMBER-createsu /dev/stdout | python ./.github/check_lambda_response.py
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
- 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 | python ../.github/check_lambda_response.py
aws lambda invoke --function-name cms-eregs-eph-$PR_NUMBER-dropdb /dev/stdout | ../.github/check_lambda_response.py
# Generate the stack names for this PR
TEXT_EXTRACTOR_STACK="cms-eregs-eph-${PR_NUMBER}-text-extractor"
Expand Down

0 comments on commit 62cbb24

Please sign in to comment.