From 726718866b8b5b6fde1fc8f5eaa4efc850089f15 Mon Sep 17 00:00:00 2001 From: Bernardo Guerreiro Date: Tue, 23 Jan 2024 14:01:40 +0000 Subject: [PATCH] refactor: try with sdk load config again --- .github/workflows/serverless-deploy.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/serverless-deploy.yaml b/.github/workflows/serverless-deploy.yaml index 8b7a50c..a298012 100644 --- a/.github/workflows/serverless-deploy.yaml +++ b/.github/workflows/serverless-deploy.yaml @@ -55,7 +55,7 @@ jobs: role-to-assume: ${{ secrets.AWS_DEPLOYER_ROLE }} role-session-name: OIDCSession mask-aws-account-id: true - - name: Serverless OIDC Login #https://github.com/thomasmichaelwallace/serverless-better-credentials?tab=readme-ov-file#troubleshooting + - name: Serverless OIDC Login #https://github.com/thomasmichaelwallace/serverless-better-credentials?tab=readme-ov-file#troubleshooting run: | mkdir -p ~/.aws rm -rf ~/.aws/credentials @@ -69,8 +69,8 @@ jobs: # run: npx serverless config credentials --provider aws --key ${{ env.AWS_ACCESS_KEY_ID }} --secret ${{ env.AWS_SECRET_ACCESS_KEY }} - name: serverless_deploy run: npm run deploy - # env: - # AWS_SDK_LOAD_CONFIG: 1 + env: + AWS_SDK_LOAD_CONFIG: 1 - name: seed_db if: ${{ github.event.inputs.SHOULD_SEED_DB == true }} run: npm run seed-db @@ -80,5 +80,5 @@ jobs: SERVICE_URL="$(npx serverless info --verbose | grep ServiceEndpoint | sed s/ServiceEndpoint\:\ //g)" # echo "::add-mask::$SERVICE_URL" echo "SERVICE_URL=$SERVICE_URL" >> "$GITHUB_OUTPUT" - # env: - # AWS_SDK_LOAD_CONFIG: 1 \ No newline at end of file + env: + AWS_SDK_LOAD_CONFIG: 1 \ No newline at end of file