Skip to content

Commit 01facdd

Browse files
committed
More examples
1 parent 6053d7f commit 01facdd

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ This gem expects your secret value to be a JSON object. The only required key is
3434
* `ttl` - Time to live in seconds. Describes how long the secret should live in in-memory cache.
3535
* `encoding` - Currently, only `base64` is supported as a value. If your `value` is base64 encoded, this will result in a returned secret that is base64 decoded.
3636

37+
Example:
38+
```
39+
{"value": "secretvalue", "ttl": 60} // Will live in cache for 60 seconds.
40+
```
41+
42+
```
43+
{"value": "c2VjcmV0dmFsdWU=", "ttl": 60, "encoding": "base64"} // Will live in cache for 60 seconds and is base64 encoded. Result will be "secretvalue"
44+
```
45+
3746
### Configuration
3847
The follow ENV vars are expected:
3948
* `AWS_SECRETS_ENV` - preceeds all path lookups, ex: `dev`, `staging`, `qa`, `production`

0 commit comments

Comments
 (0)