Skip to content

Commit

Permalink
upgraded aws-sdk in cli scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerre committed Nov 1, 2023
1 parent ac04030 commit ad0132c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
- [ ] `npm test`
10 changes: 5 additions & 5 deletions bin/create-secrets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
Expand All @@ -150,7 +150,7 @@ function createSecrets (list) {

}

let promise = secretsmanager.createSecret(params).promise();
const promise = secretsmanager.createSecret(params);
promises.push(promise);

}
Expand Down

0 comments on commit ad0132c

Please sign in to comment.