Skip to content

Commit

Permalink
specify region
Browse files Browse the repository at this point in the history
  • Loading branch information
yuetloo committed Jan 3, 2024
1 parent 4930f8d commit ff0ba39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/sh/upload-tally.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ set -e
#
# sh/upload-tally.sh
#
# Make sure the PINATA_JWT secret is set in the AWS secrets manager
# Make sure the PINATA_JWT secret is set in the AWS secrets manager in the us-east-1 region
# aws scretsmanager create-secret --name PINATA_JWT --secret-string "SECRET_VALUE"
#

PINATA_JWT=$(aws secretsmanager get-secret-value --secret-id PINATA_JWT | jq -r '.SecretString')
PINATA_JWT=$(aws secretsmanager get-secret-value --region us-east-1 --secret-id PINATA_JWT | jq -r '.SecretString')
curl --location --request POST 'https://api.pinata.cloud/pinning/pinFileToIPFS' \
--header "Authorization: Bearer ${PINATA_JWT}" \
--form 'file=@"tally.json"'
Expand Down

0 comments on commit ff0ba39

Please sign in to comment.