Finish up lab3

This commit is contained in:
2025-06-16 18:49:18 -07:00
parent d1e7574cf9
commit e7297ff195
10 changed files with 261 additions and 217 deletions

View File

@ -0,0 +1,11 @@
#!/bin/bash
if [ -z $BW_AWS_ACCOUNT_SECRET_ID ]; then
echo "env var BW_AWS_ACCOUNT_SECRET_ID must be set!"
exit 1
fi
AWS_SECRETS=$(bw get item $BW_AWS_ACCOUNT_SECRET_ID)
export AWS_ACCESS_KEY_ID=$(echo "$AWS_SECRETS" | jq -r '.fields[0].value')
export AWS_SECRET_ACCESS_KEY=$(echo "$AWS_SECRETS" | jq '.fields[1].value' | tr -d '"')