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 27, 2023
1 parent db1fce6 commit b6b463f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 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 | | jq -r '.SecretString')
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 All @@ -47,4 +47,4 @@ python scripts/delete_expired_partner_gdpr_reports.py \

# Remove the temporary files after processing
rm -f "$TEMP_CONFIG_YAML"
rm -f "$TEMP_GOOGLE_SECRETS"
rm -f "$TEMP_GOOGLE_SECRETS"
4 changes: 2 additions & 2 deletions 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 | | jq -r '.SecretString')
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 All @@ -63,4 +63,4 @@ python scripts/retirement_partner_report.py \

# Remove the temporary files after processing
rm -f "$TEMP_CONFIG_YAML"
rm -f "$TEMP_GOOGLE_SECRETS"
rm -f "$TEMP_GOOGLE_SECRETS"

0 comments on commit b6b463f

Please sign in to comment.