@predictivehire/utils
v1.0.9
Published
The common utils developed by PredictiveHire
Downloads
2
Readme
common-utils
Public common utils services for PredictiveHire
Install
npm i @predictivehire/utils
# or
yarn add @predictivehire/utils
SecretsManager
- fetching secrets from AWS Secret Manager with caching mechanism.
import { SecretsManager } from "@predictivehire/utils"
const secretsManager = new SecretsManager("ap-southeast-2") // pass the aws region
const username = await secretsManager.getSecretValue("secretKey", "secretManagerName")
const password = await secretsManager.getSecretValue("secretKey", "secretManagerName")