@govuk-pay/cli 0.0.58 → 0.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/tunnel.js +11 -3
package/package.json
CHANGED
package/src/commands/tunnel.js
CHANGED
|
@@ -449,14 +449,22 @@ async function getDbUser(environment, application, dbAccessType) {
|
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
function getPayLowPassDbSecretName(environment, user, dbAccessType) {
|
|
452
|
+
let passEnv;
|
|
453
|
+
switch (environment) {
|
|
454
|
+
case 'test-perf-1':
|
|
455
|
+
passEnv = 'test-perf';
|
|
456
|
+
break;
|
|
457
|
+
default:
|
|
458
|
+
passEnv = environment.split('-')[0];
|
|
459
|
+
}
|
|
452
460
|
if (dbAccessType === 'admin') {
|
|
453
|
-
return `aws/rds/application_users/${
|
|
461
|
+
return `aws/rds/application_users/${passEnv}/${user}`;
|
|
454
462
|
}
|
|
455
463
|
else if (dbAccessType === 'readwrite') {
|
|
456
|
-
return `aws/rds/support_readwrite_users/${
|
|
464
|
+
return `aws/rds/support_readwrite_users/${passEnv}/${user}`;
|
|
457
465
|
}
|
|
458
466
|
else {
|
|
459
|
-
return `aws/rds/support_readonly_users/${
|
|
467
|
+
return `aws/rds/support_readonly_users/${passEnv}/${user}`;
|
|
460
468
|
}
|
|
461
469
|
}
|
|
462
470
|
function getPaySecretsPasswordName(dbAccessType) {
|