Skip to content

Commit

Permalink
fix getting secret value
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Vilche committed Mar 9, 2023
1 parent 5c90e4a commit de56727
Show file tree
Hide file tree
Showing 5 changed files with 132 additions and 85 deletions.
1 change: 1 addition & 0 deletions .nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cache": true,
"all": true,
"check-coverage": true,
"skip-full": true,
"statements": 95,
"branches": 95,
"functions": 95,
Expand Down
5 changes: 3 additions & 2 deletions lib/wrappers/aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

const { SecretsManagerClient, GetSecretValueCommand } = require('@aws-sdk/client-secrets-manager');

const secretsManager = new SecretsManagerClient({});
const secretsManagerClient = new SecretsManagerClient({});

module.exports.secretsManager = {
getSecretValue: params => secretsManager.send(new GetSecretValueCommand(params))
SecretsManagerClient: secretsManagerClient,
getSecretValue: params => secretsManagerClient.send(new GetSecretValueCommand(params))
};
97 changes: 80 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"test": "tests"
},
"dependencies": {
"@aws-sdk/client-secrets-manager": "^3.287.0"
"@aws-sdk/client-secrets-manager": "^3.287.0",
"aws-sdk-client-mock": "^2.1.0"
}
}
Loading

0 comments on commit de56727

Please sign in to comment.