@purista/aws-secret-store
v1.11.0
Published
State store adapter for AWS Secrets Manager
Downloads
14
Readme
@purista/aws-secret-store
A secret store for using AWS Secrets Manager as storage.
const config = {
region: 'us-east-1'
}
const store = new AWSSecretStore(config)
await store.setSecret('mySecret', 'value')
let value = await store.getSecret('mySecret')
console.log(value) // outputs: { mySecret: 'value' }
await store.removeSecret('mySecret')
value = await store.getSecret('mySecret')
console.log(value) // outputs: undefined
Visit purista.dev
Follow on Twitter @purista_js
Join the Discord Chat