You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,10 @@ The path format is as follows: `{{secret_env}}/{{secret_path}}`. When using this
29
29
30
30
For example, to access the secret `twlio-key`, `$secrets.fetch('twilio-key')`. This would be stored in AWS SM as `dev/twilio-key`.
31
31
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
+
32
36
### Payload
33
37
This gem expects your secret value to be a JSON object. The only required key is `value`. The following keys are optional:
34
38
*`ttl` - Time to live in seconds. Describes how long the secret should live in in-memory cache.
0 commit comments