Skip to content

Commit

Permalink
fix: use variables instead of argument index, which fixes a bug
Browse files Browse the repository at this point in the history
script was incorrectly using 'env' as secret name and 'secret_name' for
the value/file path.
  • Loading branch information
angela-tran committed Feb 24, 2023
1 parent 657198d commit 08fc01c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion terraform/secrets/file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ env=$1
secret_name=$2
file_path=$3

az keyvault secret set --vault-name "KV-CDT-PUB-CALITP-$env-001" --name $1 --file $2
az keyvault secret set --vault-name "KV-CDT-PUB-CALITP-$env-001" --name $secret_name --file $secret_value
2 changes: 1 addition & 1 deletion terraform/secrets/value.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ env=$1
secret_name=$2
secret_value=$3

az keyvault secret set --vault-name "KV-CDT-PUB-CALITP-$env-001" --name $1 --value "$2"
az keyvault secret set --vault-name "KV-CDT-PUB-CALITP-$env-001" --name $secret_name --value "$secret_value"

0 comments on commit 08fc01c

Please sign in to comment.