0.1.0 • Published 2 years ago
fetch-secret v0.1.0
fetch-secret
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