We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2a51695 + 3f4fe42 commit 9e7e072Copy full SHA for 9e7e072
server.js
@@ -1638,7 +1638,8 @@ async function getAwsSecret(secretName, maxRetries = 3) {
1638
for (let attempt = 1; attempt <= maxRetries; attempt++) {
1639
try {
1640
console.log(`Attempt ${attempt}/${maxRetries} for secret: ${secretName}`);
1641
- const awsClient = new SecretsManagerClient({ region: "us-west-1" });
+ const region = process.env.AWS_REGION || process.env.AWS_DEFAULT_REGION || "us-west-2";
1642
+ const awsClient = new SecretsManagerClient({ region });
1643
console.log('AWS Secrets Manager client created');
1644
1645
const command = new GetSecretValueCommand({
0 commit comments