A CLI tool which obtains data from credstash and renders it with Jinja2
There is credstash
have to be configured by
this manual.
pip install aws_credential_replacer
Imagine, you have a file with following content:
{
"hello": "{{ TEST_CRED }}",
"world": "{{ TEST_CRED1 }}"
}
And output of credstash list
is:
TEST_CRED -- version 0000000000000000000
TEST_CRED1 -- version 0000000000000000000
To replace data in json to actual credentials data you have to type credentials_replacer creds.json
. You
will obtain following output:
{
"hello": "test",
"world": "test1"
}
where test
and test1
is actual data values of TEST_CRED
and TEST_CRED1
accordingly.
PS: You also can use any jinja2 syntax you want
Happy aws project building 😄