Skip to content

guardian/nest-secrets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nest-secrets

Retrieve configuration from AWS Parameter Store by prefix. For example, if you app is called 'pineapple' and you have parameters as so:

/pineapple/prod/db.url: http://..
/pineapple/prod/db.password: secret-password

Then run:

$ nest-secrets --prefix /pineapple/prod

And, assuming you have AWS credentials, you'll get back:

db_url=http://..
db_password=secret-password

Note, '/' and '.' are converted to '_' for the environment variable names, and the prefix itself is removed.

If using with Docker, the recommendation is to use this with the env-file option, something like:

$ nest-secrets --prefix /pineapple/prod > .env
$ docker run my-container --env-file .env