GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — zero-backend-node/scripts/setup-stripe-secrets.sh at main · commitdev/zero-backend-node Expand file tree/ Copy pathsetup-stripe-secrets.shMore file actions executable file ·24 lines (19 loc) · 1.15 KB / Copy pathsetup-stripe-secrets.shFile metadata and controlsexecutable file ·24 lines (19 loc) · 1.15 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 #!/bin/bash # This script runs only when billingEnabled = "yes", invoked from makefile # It will modify the application secret in Secrets Manager and append STRIPE_API_SECRET_KEY # This will be synced to k8s and the deployment will pick up all key-value pairs as env vars from the secret if [[ "$ENVIRONMENT" == "stage" ]]; then PUBLISHABLE_API_KEY=$stagingStripePublicApiKey SECRET_API_KEY=$stagingStripeSecretApiKey elif [[ "$ENVIRONMENT" == "prod" ]]; then PUBLISHABLE_API_KEY=$productionStripePublicApiKey SECRET_API_KEY=$productionStripeSecretApiKey else echo 'Must specify $ENVIRONMENT (stage/prod) to create stripe secret'>&2; exit 1; fi SECRET_NAME=${PROJECT_NAME}/application/${ENVIRONMENT}/${PROJECT_NAME} # Modify existing application secret to add stripe api key UPDATED_SECRET=$(aws secretsmanager get-secret-value --region ${REGION} --secret=${SECRET_NAME} --query "SecretString" --output text | \ jq --arg STRIPE_API_SECRET_KEY ${SECRET_API_KEY} '.STRIPE_API_SECRET_KEY=$STRIPE_API_SECRET_KEY') aws secretsmanager update-secret --secret-id=${SECRET_NAME} --secret-string="${UPDATED_SECRET}" sh ${PROJECT_DIR}/scripts/stripe-example-setup.sh |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |