Fetches secrets from AWS Secrets Manager by identifier. Current stable version is 0.1.0. Provides both callback-based `getSecretValue` and Promise-based `getSecretValueAsync` APIs. Lightweight wrapper around the AWS SDK with minimal abstraction. Configured via environment variables (`AWS_ACCESS_KEY`, `AWS_SECRET_KEY`, `AWS_REGION`, `SM_REMOTE`). Suitable for Node.js projects needing quick secret retrieval without full AWS SDK setup, though lacks advanced features like caching or automatic retries.
npm install fetch-secret-identifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows both callback and async/await usage to fetch a secret by identifier from AWS Secrets Manager.
Set both environment variables before calling any function.
Set SM_REMOTE=true in environment when deploying to AWS.
Create manual .d.ts or use `@ts-ignore`.
Use const sm = require('fetch-secret-identifier');Set AWS_REGION=us-west-2 (or your region) in environment.
Attach AWSSecretsManagerReadWrite policy to the IAM user/role.