Skip to content

Commit

Permalink
Add hack for short lambda name
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenhand committed Jan 15, 2025
1 parent 5379760 commit 28b503d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/twilio-lambda-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
run: |
DOCKER_IMAGE=$(echo "${{ env.ECR_URL }}:${{ github.ref_type }}.${{ github.ref_name }}" | sed -r 's/${{ env.PRIMARY_AWS_REGION }}/${{ inputs.region }}/g')
LAMBDA_NAME=$(basename "./${{ matrix.lambda_path == 'account-scoped' && 'acctscope' || matrix.lambda_path }}")
LAMBDA_NAME=$(basename "./${{ matrix.lambda_path == 'account-scoped' && 'acctscpe' || matrix.lambda_path }}")
SHORT_LAMBDA_NAME=${{ matrix.lambda_path== 'account-scoped' }}
LAMBDA="${{ inputs.environment }}-${{ inputs.region }}-$LAMBDA_NAME"
OUTPUT=$(aws lambda update-function-code --function-name $LAMBDA --image-uri "$DOCKER_IMAGE" --publish)
Expand Down

0 comments on commit 28b503d

Please sign in to comment.