Skip to content

Commit

Permalink
Add sync-env.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
slesaad committed Oct 9, 2023
1 parent 0f5f79d commit 266d06c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/sync-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Use this script to load environment variables for a deployment from AWS Secrets

echo Loading environment secrets from $1
aws secretsmanager get-secret-value --secret-id $1 --query SecretString --output text | jq -r 'to_entries|map("\(.key)=\(.value|tostring)")|.[]' > .env

0 comments on commit 266d06c

Please sign in to comment.