Skip to content

Commit

Permalink
fix(layer): update partition name in the GovCloud workflow (#5379)
Browse files Browse the repository at this point in the history
fix: partition name update in govcloud verify

Co-authored-by: Simon Thulbourn <sthulb@@users.noreply.github.com>
  • Loading branch information
sthulb and Simon Thulbourn authored Oct 14, 2024
1 parent f1b8687 commit b3eeb45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/layer_govcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,6 @@ jobs:
--version-number
- name: Verify Layer
run: |
REMOTE_SHA=$(aws --region us-gov-west-1 lambda get-layer-version-by-arn --arn arn:aws:lambda:us-gov-west-1:${{ secrets.AWS_ACCOUNT_ID }}:layer:${{ matrix.layer }}-${{ matrix.arch }}:${{ inputs.version }} --query 'Content.CodeSha256' --output text)
REMOTE_SHA=$(aws --region us-gov-west-1 lambda get-layer-version-by-arn --arn arn:aws-us-gov:lambda:us-gov-west-1:${{ secrets.AWS_ACCOUNT_ID }}:layer:${{ matrix.layer }}-${{ matrix.arch }}:${{ inputs.version }} --query 'Content.CodeSha256' --output text)
SHA=$(jq -r '.Content.CodeSha256' ${{ matrix.layer }}_${{ matrix.arch }}.json)
test $($REMOTE_SHA == $SHA && echo "SHA OK: ${SHA}" || exit 1

0 comments on commit b3eeb45

Please sign in to comment.