fetch-secret

0.1.0 • Public • Published

fetch-secret

Build Status

A simple utility for fetching a secret from AWS secrets manager into file that can be sourced by bash.

Usage

npx fetch-secrets --output ./fileToAppendTo.sh --secret arn:aws:secretsmanager:${AWS_REGION}:${AWS_ACCOUNT_ID}:secret:someSecretName

With automatic role assumption

npx fetch-secrets --output ./fileToAppendTo.sh --role arn:aws:iam::${AWS_ACCOUNT_ID}:role/some-role --secret arn:aws:secretsmanager:${AWS_REGION}:${AWS_ACCOUNT_ID}:secret:someSecretName

/fetch-secret/

    Package Sidebar

    Install

    npm i fetch-secret

    Weekly Downloads

    727

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    5.58 kB

    Total Files

    4

    Last publish

    Collaborators

    • terodox-admin