sm-query

Queries AWS Secrets Manager for a secret, and returns either the full secret or a key within it.

Usage no npm install needed!

<script type="module">
  import smQuery from 'https://cdn.skypack.dev/sm-query';
</script>

README

aws-sm-query

Queries AWS Secrets Manager for a secret, and returns either the full secret or a key within it.

you can specify the property as second argument, or access it after it's retrieved:

await sm.query('ServiceAccount_json',"service_account")
await sm.query('heroco_service_account')).client_email