Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaryaz committed Feb 2, 2024
1 parent 37c9458 commit 6555221
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-lambdas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
aws-region: us-east-1
- name: Upload zips to Prod S3
run: |
s3_key="$(basename "$PWD")/${{ github.sha }}.zip"
s3_key="$(basename ${{ matrix.path }})/${{ github.sha }}.zip"
./lambdas/upload_zip.sh ./out.zip "$s3_key"
- name: Configure AWS credentials from GovCloud account
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -59,7 +59,7 @@ jobs:
aws-region: us-gov-east-1
- name: Upload zips to GovCloud S3
run: |
s3_key="$(basename "$PWD")/${{ github.sha }}.zip"
s3_key="$(basename ${{ matrix.path }})/${{ github.sha }}.zip"
./lambdas/upload_zip.sh ./out.zip "$s3_key"
deploy-lambda-ecr:
Expand Down
2 changes: 1 addition & 1 deletion lambdas/upload_zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ error() {
zip_file=$1
s3_key=$2

primary_region=$(aws configure get region)
primary_region=$(aws configure get region) || error "Could not get primary region"
regions=$(aws ec2 describe-regions --query "Regions[].{Name:RegionName}" --output text)

echo "Uploading to $primary_region..."
Expand Down

0 comments on commit 6555221

Please sign in to comment.