@govuk-pay/cli 0.0.57 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@govuk-pay/cli",
3
- "version": "0.0.57",
3
+ "version": "0.0.59",
4
4
  "description": "GOV.UK Pay Command Line Interface",
5
5
  "bin": {
6
6
  "pay": "bin/cli.js",
@@ -33,6 +33,7 @@ exports.SERVICE_NAMES = [
33
33
  'deploy',
34
34
  'frontend',
35
35
  'ledger',
36
+ 'logging_pipeline',
36
37
  'network',
37
38
  'pact-broker',
38
39
  'pact-broker-auth',
@@ -9,5 +9,8 @@ exports.DEV_CONFIG = {
9
9
  'docker-username': 'dockerhub/concourse-username',
10
10
  'docker-access-token': 'dockerhub/concourse-access-token',
11
11
  'github-access-token': 'alphagov-pay-ci-concourse/github.com-concourse-github-personal-access-token'
12
+ },
13
+ logging_pipeline: {
14
+ splunk_hec_token: 'splunk-dev/govuk_pay_dev'
12
15
  }
13
16
  };
@@ -133,6 +133,9 @@ exports.SERVICE_SECRETS = {
133
133
  'DB_USER',
134
134
  'SENTRY_DSN'
135
135
  ],
136
+ logging_pipeline: [
137
+ 'splunk_hec_token'
138
+ ],
136
139
  network: [
137
140
  'PAGER_DUTY_CLOUDWATCH_ALB_INTEGRATION_URL'
138
141
  ],
@@ -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/${environment.split('-')[0]}/${user}`;
461
+ return `aws/rds/application_users/${passEnv}/${user}`;
454
462
  }
455
463
  else if (dbAccessType === 'readwrite') {
456
- return `aws/rds/support_readwrite_users/${environment.split('-')[0]}/${user}`;
464
+ return `aws/rds/support_readwrite_users/${passEnv}/${user}`;
457
465
  }
458
466
  else {
459
- return `aws/rds/support_readonly_users/${environment.split('-')[0]}/${user}`;
467
+ return `aws/rds/support_readonly_users/${passEnv}/${user}`;
460
468
  }
461
469
  }
462
470
  function getPaySecretsPasswordName(dbAccessType) {