AWS Secrets Manager

Loading secrets from AWS Secrets Manager

AwsSecretsLoader loads the secret from AWSSecretsManager.

Usage in .env

VARIABLE=${aws-secrets(region=us-east-2,raw=true):/path/to/secret}

Syntax Terms Explanation

aws-secrets: Tells that provider is secrets and to load data from secrets manager.

(): Parameters for aws-secrets. Currently, two parameters are accepted: region: region for aws-s3. If this is not set, secretsfoundry looks for AWS_REGION environment variable. If both aren't set, you can make AWS look for the default region defined in ~/.aws/config by setting the environment variable AWS_SDK_LOAD_CONFIG=1 raw: Tells whether the secret value should be decrypted or not. Can only be either true or false . Defaults to false .

path: Name of the secret used.

Last updated