Skip to content

Commit

Permalink
Invoke migrate and createsu lambda for dev deploy as well
Browse files Browse the repository at this point in the history
  • Loading branch information
cgodwin1 committed Feb 13, 2025
1 parent 60b5f05 commit 9dc0be2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/deploy-cdk-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,16 @@ jobs:
--outputs-file api-outputs.json
popd
- name: Invoke setup functions after site lambdas deployed
if: success() && steps.findPr.outputs.number
env:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}
CDK_DEBUG: true
run: |
aws lambda invoke --function-name cms-eregs-${{ matrix.environment }}-migrate /dev/stdout
aws lambda invoke --function-name cms-eregs-${{ matrix.environment }}-createsu /dev/stdout
- name: Get API URL
id: get-api-url
run: |
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/deploy-experimental-cdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -399,12 +399,9 @@ jobs:
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}
CDK_DEBUG: true
run: |
pushd cdk-eregs
API_STACK="cms-eregs-eph-${{ steps.findPr.outputs.pr }}-api"
aws lambda invoke --function-name cms-eregs-eph-$PR_NUMBER-createdb /dev/stdout
aws lambda invoke --function-name cms-eregs-eph-$PR_NUMBER-migrate /dev/stdout
aws lambda invoke --function-name cms-eregs-eph-$PR_NUMBER-createsu /dev/stdout
popd
- name: Get API URL
id: get-api-url
Expand Down

0 comments on commit 9dc0be2

Please sign in to comment.