Skip to content

Commit

Permalink
chore: Remove secure repo and fetch secrets from AWS for analytics je…
Browse files Browse the repository at this point in the history
…nkins jobs
  • Loading branch information
syedimranhassan committed Oct 25, 2023
1 parent 55fecd4 commit db1fce6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dataeng/resources/retirement-partner-report-cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ TEMP_CONFIG_YAML=$(mktemp $WORKSPACE/tempfile.XXXXXXXXXX.yml)
echo "$CONFIG_YAML" > "$TEMP_CONFIG_YAML"

# Fetch google-service-account secrets
GOOGLE_SERVICE_ACCOUNT_JSON=$(aws secretsmanager get-secret-value --secret-id "user-retirement-secure/google-service-accounts/service-account-$ENVIRONMENT.json" --region "us-east-1" --output json )
GOOGLE_SERVICE_ACCOUNT_JSON=$(aws secretsmanager get-secret-value --secret-id "user-retirement-secure/google-service-accounts/service-account-$ENVIRONMENT.json" --region "us-east-1" --output json | | jq -r '.SecretString')
# Create a temporary file to store the YAML
TEMP_GOOGLE_SECRETS=$(mktemp $WORKSPACE/tempfile.XXXXXXXXXX.json)

Expand Down
2 changes: 1 addition & 1 deletion dataeng/resources/retirement-partner-reporter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ TEMP_CONFIG_YAML=$(mktemp $WORKSPACE/tempfile.XXXXXXXXXX.yml)
echo "$CONFIG_YAML" > "$TEMP_CONFIG_YAML"

# Fetch google-service-account secrets
GOOGLE_SERVICE_ACCOUNT_JSON=$(aws secretsmanager get-secret-value --secret-id "user-retirement-secure/google-service-accounts/service-account-$ENVIRONMENT.json" --region "us-east-1" --output json )
GOOGLE_SERVICE_ACCOUNT_JSON=$(aws secretsmanager get-secret-value --secret-id "user-retirement-secure/google-service-accounts/service-account-$ENVIRONMENT.json" --region "us-east-1" --output json | | jq -r '.SecretString')
# Create a temporary file to store the YAML
TEMP_GOOGLE_SECRETS=$(mktemp $WORKSPACE/tempfile.XXXXXXXXXX.json)

Expand Down

0 comments on commit db1fce6

Please sign in to comment.