Skip to content

Commit

Permalink
feat: change secret manager based on deployed env
Browse files Browse the repository at this point in the history
  • Loading branch information
PfisterFactor committed Jan 7, 2025
1 parent 0309905 commit 99e84b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/external/nexus/NexusAWSAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import ky from "ky";
/**
* AWS Secret Manager secret that has the AWS Cognito auth information for Nexus API
*/
const secretName = "blx-shell-user-pool-stack-blx-api-client-secrets-dev-v1";
const secretName = process.env.COPILOT_ENVIRONMENT_NAME === "production" ?
"blx-shell-user-pool-stack-blx-api-client-secrets-prod-v1"
: "blx-shell-user-pool-stack-blx-api-client-secrets-dev-v1";
/**
* Cached auth token so we don't have to
* fetch a new one from AWS every time we do a Nexus API call
Expand Down

0 comments on commit 99e84b1

Please sign in to comment.