Skip to content

singleton11/aws-credential-replacer

Repository files navigation

AWS Credentials replacer

PyPI version Build Status Coverage Status Requirements Status

A CLI tool which obtains data from credstash and renders it with Jinja2

Requirements

There is credstash have to be configured by this manual.

Installation

pip install aws_credential_replacer

Usage

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 😄