Skip to content

Commit

Permalink
chore: Remove secure repo and fetch secrets from AWS
Browse files Browse the repository at this point in the history
  • Loading branch information
syedimranhassan authored Oct 18, 2023
1 parent e625fcf commit 0d14d76
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions devops/resources/user-retirement-archiver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,7 @@ cd $WORKSPACE/configuration
# hide the sensitive information in the logs
set +x

SECRET_JSON=$(aws secretsmanager get-secret-value --secret-id "user-retirement-secure/${ENVIRONMENT_DEPLOYMENT}" --region "us-east-1" --output json)
# Check for a successful response
if [ $? -eq 0 ]; then
# Use jq to convert the JSON to YAML
SECRET_YAML=$(echo "$SECRET_JSON" | jq -r '.SecretString' | yq eval - -P)
else
echo "AWS CLI command failed"
fi
SECRET_YAML=$(aws secretsmanager get-secret-value --secret-id "user-retirement-secure/${ENVIRONMENT_DEPLOYMENT}" --region "us-east-1" --output json | jq -r '.SecretString' | yq -y .)

set -x

Expand Down

0 comments on commit 0d14d76

Please sign in to comment.