Skip to content

Commit

Permalink
Change retrieval of SYS password
Browse files Browse the repository at this point in the history
  • Loading branch information
bill-buchan committed Jan 23, 2025
1 parent af097b2 commit 69c276d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions docker/oracle-observer/create_wallet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,10 @@ echo "Creating wallet directory at $WALLET_DIR..."
mkdir -p "$WALLET_DIR"
chmod 700 "$WALLET_DIR"

# Retrieve the SYS password from AWS Secrets Manager
echo "Retrieving SYS password from AWS Secrets Manager..."
SYS_PASSWORD=$(aws secretsmanager get-secret-value \
--secret-id "${DATABASE_SECRETS}" \
--region eu-west-2 --query 'SecretString' \
--output json | jq -r '.' | jq -r '.sys')
SYS_PASSWORD=$(echo ${DATABASE_SECRETS_JSON} | jq -r '.sys')

if [ -z "$SYS_PASSWORD" ]; then
echo "Failed to retrieve the SYS password. Please check your AWS CLI configuration and secret name."
echo "Failed to find the SYS password."
exit 1
fi

Expand Down

0 comments on commit 69c276d

Please sign in to comment.