Skip to content

Commit 1925790

Browse files
committed
Updated readme
1 parent b67ba7a commit 1925790

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ The path format is as follows: `{{secret_env}}/{{secret_path}}`. When using this
2929

3030
For example, to access the secret `twlio-key`, `$secrets.fetch('twilio-key')`. This would be stored in AWS SM as `dev/twilio-key`.
3131

32+
If you would like to define a secret that is available in all envs, you can prefix your lookup with `global` and the `secret_env` will not be prependded to the request.
33+
34+
For example: to access the secret `global/config/foo`, `$secrets.fetch('global/config/foo')`. This would be stored in AWS SM as `global/config/foo`.
35+
3236
### Payload
3337
This gem expects your secret value to be a JSON object. The only required key is `value`. The following keys are optional:
3438
* `ttl` - Time to live in seconds. Describes how long the secret should live in in-memory cache.

0 commit comments

Comments
 (0)