Skip to content

Commit

Permalink
fix: aws sdk load config in right place
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardobridge committed Jan 23, 2024
1 parent 05f5813 commit 5bac58a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/serverless-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:
runs-on: ubuntu-latest
env:
ENVIRONMENT: ${{ github.event.inputs.ENVIRONMENT }}
AWS_SDK_LOAD_CONFIG: 1
outputs:
SERVICE_URL: ${{ steps.set_service_url.outputs.SERVICE_URL }}
steps:
Expand All @@ -58,6 +57,8 @@ jobs:
mask-aws-account-id: true
- name: serverless_deploy
run: npm run deploy
env:
AWS_SDK_LOAD_CONFIG: 1
- name: seed_db
if: ${{ github.event.inputs.SHOULD_SEED_DB == true }}
run: npm run seed-db
Expand All @@ -66,4 +67,6 @@ jobs:
run: |
SERVICE_URL="$(npx serverless info --verbose | grep ServiceEndpoint | sed s/ServiceEndpoint\:\ //g)"
# echo "::add-mask::$SERVICE_URL"
echo "SERVICE_URL=$SERVICE_URL" >> "$GITHUB_OUTPUT"
echo "SERVICE_URL=$SERVICE_URL" >> "$GITHUB_OUTPUT"
env:
AWS_SDK_LOAD_CONFIG: 1

0 comments on commit 5bac58a

Please sign in to comment.