Skip to content

Commit f7b4eda

Browse files
authored
fix: billing secret dont need to be base64 encoded (#33)
1 parent 9a0bb2d commit f7b4eda

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/setup-stripe-secrets.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ else
1515
fi
1616

1717
SECRET_NAME=${PROJECT_NAME}/kubernetes/${ENVIRONMENT}/${PROJECT_NAME}
18-
BASE64_TOKEN=$(printf ${SECRET_API_KEY} | base64)
1918

2019
# Modify existing application secret to add stripe api key
2120
UPDATED_SECRET=$(aws secretsmanager get-secret-value --region ${REGION} --secret=${SECRET_NAME} --query "SecretString" --output text | \
22-
jq --arg STRIPE_API_SECRET_KEY ${BASE64_TOKEN} '.STRIPE_API_SECRET_KEY=$STRIPE_API_SECRET_KEY')
21+
jq --arg STRIPE_API_SECRET_KEY ${SECRET_API_KEY} '.STRIPE_API_SECRET_KEY=$STRIPE_API_SECRET_KEY')
2322
aws secretsmanager update-secret --secret-id=${SECRET_NAME} --secret-string="${UPDATED_SECRET}"
2423

2524
sh ${PROJECT_DIR}/scripts/stripe-example-setup.sh

0 commit comments

Comments
 (0)