diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index fe551da..5e4e882 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -24,4 +24,4 @@ Please describe the tests that you ran to verify your changes. Provide instructi - [ ] `npm run spell` - [ ] `npm run lint` - [ ] `npm audit` -- [ ] `npm test` (see README.md) \ No newline at end of file +- [ ] `npm test` \ No newline at end of file diff --git a/bin/create-secrets.js b/bin/create-secrets.js index 75cc3f5..52142fb 100755 --- a/bin/create-secrets.js +++ b/bin/create-secrets.js @@ -4,7 +4,7 @@ const argv = require('minimist')(process.argv.slice(2)); const fs = require('fs').promises; const {inspect} = require('util'); const yaml = require('js-yaml'); -const AWS = require('aws-sdk'); +const {SecretsManager} = require('@aws-sdk/client-secrets-manager'); const {F_OK, R_OK} = require('fs').constants; const ENV = 'development'; @@ -129,12 +129,12 @@ function parseSecrets(obj, current) { function createSecrets (list) { - const secretsmanager = new AWS.SecretsManager({region:region}); - let promises = []; + const secretsmanager = new SecretsManager({ region:region }); + const promises = []; for (let item of list) { - let params = { + const params = { Name: item.key, KmsKeyId: kms, SecretString: item.value, @@ -150,7 +150,7 @@ function createSecrets (list) { } - let promise = secretsmanager.createSecret(params).promise(); + const promise = secretsmanager.createSecret(params); promises.push(promise); }