Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Oct 1, 2020
1 parent c2cf73d commit 54af3e0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
# jinja2-gcp-secret-manager
Jinja2 extension for fetching secrets GCP Secret Manager

# Install

```console
pip install jinja2-gcp-secret-manager
```

## Usage

```
# template.j2
Secret is {% gcp_secret "secret-name" %}
# By default, the latest version is fetched, for specific version use:
2nd version of secret is {% gcp_secret "secret-name" version=2 %}
```

Note: Make sure `GOOGLE_APPLICATION_CREDENTIALS` environment variable is set to the correct file path.

0 comments on commit 54af3e0

Please sign in to comment.